Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
22 lines
454 B
JavaScript
22 lines
454 B
JavaScript
// Module ID: 4262
|
|
// Function ID: 4263
|
|
// Dependencies: [19, 4261]
|
|
// Exports: useShallow
|
|
|
|
// Module 4262
|
|
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;
|
|
};
|
|
};
|