persona-community-5/.pnpm-store/v3/files/ff/44be15423df395156276a12a1692dcc62f77c5ee6ab5a3e44ed96056c67829ed75a46f19dbd990969e8bed6be505dd03692b8ee2147549a4e9903da650049a
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

17 lines
438 B
Plaintext

// packages/react/use-previous/src/use-previous.tsx
import * as React from "react";
function usePrevious(value) {
const ref = React.useRef({ value, previous: value });
return React.useMemo(() => {
if (ref.current.value !== value) {
ref.current.previous = ref.current.value;
ref.current.value = value;
}
return ref.current.previous;
}, [value]);
}
export {
usePrevious
};
//# sourceMappingURL=index.mjs.map