decord/source/__polyfill/00xxx/module_334.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

46 lines
1.1 KiB
JavaScript

// 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 */;
fn(19).useCallback;
export default function useMergeRefs() {
const items = [...arguments];
const items1 = [...items];
return _modDef335(useCallback((current) => {
dependencyMap = items.map((fn) => {
current = fn;
if (null != fn) {
if (typeof fn === "function") {
fn = fn(current);
if (typeof fn !== "function") {
fn = () => {
closure_0(null);
};
}
return fn;
} else {
fn.current = current;
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));
};