18 lines
457 B
JavaScript
18 lines
457 B
JavaScript
// Metro module 5319 (f5320).
|
|
import { useCallback } from "react";
|
|
import Module5299 from "./Module5299";
|
|
export function useViewRefHandler(a0, a1) {
|
|
let c14795_0 = a0;
|
|
return useCallback((a0) => {
|
|
if (a0 !== null) {
|
|
c14795_0.viewRef = a0;
|
|
if (c14795_0.previousViewTag === -1) {
|
|
c14795_0.previousViewTag = Module5299(c14795_0.viewRef);
|
|
}
|
|
if (!c14795_0.firstRender) {
|
|
a1(true);
|
|
}
|
|
}
|
|
}, [a0, a1]);
|
|
}
|