// Module ID: 6458 // Function ID: 6459 // Name: useViewRefHandler // Dependencies: [19, 6443] // Exports: useViewRefHandler // Module 6458 (useViewRefHandler) import noop from "noop" /* 19 */; noop.useCallback; export const useViewRefHandler = function useViewRefHandler(current, detectorUpdater) { closure_0 = current; closure_1 = detectorUpdater; const items = [current, detectorUpdater]; return useCallback((viewRef) => { if (null !== viewRef) { current.viewRef = viewRef; if (-1 === current.previousViewTag) { tmp.previousViewTag = current(detectorUpdater[1])(tmp.viewRef); } if (!current.firstRender) { detectorUpdater(true); } } }, items); };