decord/source/__polyfill/04xxx/module_4347.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

22 lines
454 B
JavaScript

// Module ID: 4347
// Function ID: 4348
// Dependencies: [19, 4346]
// Exports: useShallow
// Module 4347
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;
};
};