decord/beta/source/hooks/useGetIsMounted.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

49 lines
1.2 KiB
TypeScript

// Module ID: 8523
// Function ID: 8524
// Name: useGetIsMounted
// Dependencies: [19, 558, 568, 2]
// Module 8523 (useGetIsMounted)
import c from "c" /* 568 */;
import noop from "module_19" /* 19 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("hooks/useGetIsMounted.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(3);
noop.useRef(true);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const fn = function n() {
return () => {
ref.current = false;
};
};
const items = [];
cResult[0] = fn;
cResult[1] = items;
tmp2 = fn;
tmp3 = items;
} else {
[tmp2, tmp3] = cResult;
}
const effect = noop.useEffect(tmp2, tmp3);
if (cResult[2] === Symbol.for("react.memo_cache_sentinel")) {
const fn2 = function u() {
return ref.current;
};
cResult[2] = fn2;
let tmp5 = fn2;
} else {
tmp5 = cResult[2];
}
return tmp5;
}) : (() => {
noop.useRef(true);
const effect = noop.useEffect(() => () => {
ref.current = false;
}, []);
return noop.useCallback(() => ref.current, []);
});