decord/source/__polyfill/00xxx/module_334.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 334
// Function ID: 335
// Dependencies: [19, 335]
// Exports: default
// Module 334
import _modDef335 from "module_335" /* 335 */;
import noop from "module_19" /* 19 */;
2026-07-29 08:29:29 +00:00
fn(19).useCallback;
2026-07-29 08:29:29 +00:00
export default function useMergeRefs() {
const items = [...arguments];
2026-07-29 08:29:29 +00:00
const items1 = [...items];
return _modDef335(useCallback((current) => {
dependencyMap = items.map((fn) => {
current = fn;
2026-08-04 21:03:28 +00:00
if (null != fn) {
if (typeof fn === "function") {
fn = fn(current);
2026-08-04 21:03:28 +00:00
if (typeof fn !== "function") {
2026-07-29 08:29:29 +00:00
fn = () => {
closure_0(null);
2026-07-29 08:29:29 +00:00
};
}
return fn;
} else {
fn.current = current;
2026-07-29 08:29:29 +00:00
return () => {
closure_0.current = null;
};
}
}
});
return () => {
const iter = dependencyMap[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
if (nextResult != null) {
let nextResultResult = nextResult();
}
continue;
}
};
}, items1));
};