decord/source/__polyfill/06xxx/module_6809.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

51 lines
1.6 KiB
JavaScript

// Module ID: 6809
// Function ID: 6810
// Dependencies: [19, 6787, 6790]
// Exports: useMountReactions
// Module 6809
import _mod19 from "module_19" /* 19 */;
import transformIntoHandlerTags from "transformIntoHandlerTags" /* 6787 */;
import MountRegistry2 from "MountRegistry" /* 6790 */;
function shouldUpdateDetector(arg0, handlerTag) {
if (undefined === arg0) {
return false;
} else {
const result = transformIntoHandlerTags.transformIntoHandlerTags(arg0);
for (const item10012 of result) {
if (item10012 === arg1.handlerTag) {
obj2.return();
let flag = true;
return true;
}
}
return false;
}
}
const useEffect = _mod19.useEffect;
export const useMountReactions = function useMountReactions(detectorUpdater, current2) {
closure_0 = detectorUpdater;
closure_1 = current2;
const items = [detectorUpdater, current2];
useEffect(() => {
const MountRegistry = MountRegistry2.MountRegistry;
return MountRegistry.addMountListener((arg0) => {
if (current2.isMounted) {
const attachedGestures = current2.attachedGestures;
const iter = attachedGestures[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
let requireToFail = nextResult.config.requireToFail;
let simultaneousWith = nextResult.config.simultaneousWith;
let tmp5 = shouldUpdateDetector;
if (!shouldUpdateDetector(nextResult.config.blocksHandlers, arg0)) {
}
let tmp9 = detectorUpdater();
iter.return();
}
}
});
}, items);
};