decord/source/__polyfill/07xxx/module_7515.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

24 lines
571 B
JavaScript

// Module ID: 7515
// Function ID: 7516
// Dependencies: [19, 7516]
// Exports: default
// Module 7515
import _mod19 from "module_19" /* 19 */;
import _modDef7516 from "module_7516" /* 7516 */;
const useRef = _mod19.useRef;
let closure_3 = [];
export default function useStableMemo(fn, items) {
const tmp = useRef();
const tmp2 = useRef(closure_3);
if (tmp2.current === closure_3) {
tmp.current = fn();
tmp2.current = items;
} else if (!_modDef7516(items, tmp2.current)) {
tmp.current = fn();
tmp2.current = items;
}
return tmp.current;
};