Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
24 lines
495 B
JavaScript
24 lines
495 B
JavaScript
// Module ID: 335
|
|
// Function ID: 336
|
|
// Dependencies: [19]
|
|
// Exports: default
|
|
|
|
// Module 335
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
({ useCallback: closure_0, useRef: closure_1 } = noop);
|
|
|
|
export default function useRefEffect(arg0) {
|
|
closure_0 = arg0;
|
|
framebus(undefined);
|
|
const items = [arg0];
|
|
return React((arg0) => {
|
|
if (ref.current) {
|
|
obj.current();
|
|
obj.current = undefined;
|
|
}
|
|
if (null != arg0) {
|
|
obj.current = closure_0(arg0);
|
|
}
|
|
}, items);
|
|
};
|