decord/source/__polyfill/04xxx/module_4261.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

22 lines
454 B
JavaScript

// Module ID: 4261
// Function ID: 4262
// Dependencies: [19, 4260]
// Exports: useShallow
// Module 4261
import noop from "module_19" /* 19 */;
export const useShallow = function useShallow(arg0) {
closure_0 = arg0;
noop.useRef(undefined);
return (arg0) => {
let current = closure_0(arg0);
if (obj.shallow(ref.current, current)) {
current = tmp.current;
} else {
tmp.current = current;
}
return current;
};
};