decord/source/__polyfill/01xxx/module_1598.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

17 lines
411 B
JavaScript

// Module ID: 1598
// Function ID: 1599
// Dependencies: [19, 1560]
// Exports: useDeepStableValue
// Module 1598
import equalDefault from "equal" /* 1560 */;
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;
};