2026-08-11 06:20:06 +00:00
|
|
|
// Module ID: 1613
|
|
|
|
|
// Function ID: 1614
|
2026-08-06 08:05:19 +00:00
|
|
|
// Name: useDeepStableValue
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [19, 1575]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: useDeepStableValue
|
|
|
|
|
|
2026-08-11 06:20:06 +00:00
|
|
|
// Module 1613 (useDeepStableValue)
|
2026-08-06 08:05:19 +00:00
|
|
|
import noop from "noop";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const useDeepStableValue = function useDeepStableValue(current) {
|
|
|
|
|
const ref = React.useRef(current);
|
2026-08-11 06:20:06 +00:00
|
|
|
if (!importDefault(1575)(ref.current, current)) {
|
2026-08-06 08:05:19 +00:00
|
|
|
ref.current = current;
|
|
|
|
|
}
|
|
|
|
|
return ref.current;
|
|
|
|
|
};
|