decord/source/5407_useUnmountFlag.js

23 lines
482 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 5407
2026-07-27 11:26:19 +00:00
// Function ID: 46386
2026-07-23 10:11:24 +00:00
// Name: useUnmountFlag
// Dependencies: [31]
// Exports: useUnmountFlag
// Module 5407 (useUnmountFlag)
import result from "result";
({ useRef: closure_0, useLayoutEffect: closure_1 } = result);
export const useUnmountFlag = function useUnmountFlag() {
const tmp = callback(false);
callback = tmp;
callback2(() => {
closure_0.current = false;
return () => {
outer1_0.current = true;
};
}, []);
return tmp;
};