decord/source/__polyfill/06xxx/module_6898.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

26 lines
718 B
JavaScript

// Module ID: 6898
// Function ID: 6899
// Dependencies: [19, 6883]
// Exports: useViewRefHandler
// Module 6898
import _mod19 from "module_19" /* 19 */;
import _modDef6883 from "module_6883" /* 6883 */;
_mod19.useCallback;
export const useViewRefHandler = function useViewRefHandler(current, detectorUpdater) {
const previousViewTag = current;
const items = [current, detectorUpdater];
return useCallback((viewRef) => {
if (null !== viewRef) {
previousViewTag.viewRef = viewRef;
if (-1 === previousViewTag.previousViewTag) {
tmp.previousViewTag = _modDef6883(tmp.viewRef);
}
if (!previousViewTag.firstRender) {
detectorUpdater(true);
}
}
}, items);
};