decord/source/__polyfill/01xxx/module_1506.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

16 lines
326 B
JavaScript

// Module ID: 1506
// Function ID: 1507
// Dependencies: [19]
// Exports: useLazyValue
// Module 1506
import noop from "module_19" /* 19 */;
export const useLazyValue = function useLazyValue(fn) {
const ref = noop.useRef(undefined);
if (undefined === ref.current) {
ref.current = fn();
}
return ref.current;
};