decord/source/__polyfill/01xxx/module_1597.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

17 lines
411 B
JavaScript

// Module ID: 1597
// Function ID: 1598
// Dependencies: [19, 1559]
// Exports: useDeepStableValue
// Module 1597
import equalDefault from "equal" /* 1559 */;
import noop from "module_19" /* 19 */;
export const useDeepStableValue = function useDeepStableValue(current) {
const ref = noop.useRef(current);
if (!equalDefault(ref.current, current)) {
ref.current = current;
}
return ref.current;
};