MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / useIsMounted

Function useIsMounted

web/pgadmin/static/js/custom_hooks.js:109–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109export function useIsMounted() {
110 const ref = useRef(true);
111 useEffect(() => {
112 return () => {
113 ref.current = false;
114 };
115 }, []);
116 return useCallback(() => ref.current, []);
117}
118
119export function useStopwatch() {
120 const prevTime = useRef(new Date());

Callers 4

EditorFunction · 0.90
MappedFormControlFunction · 0.90
SchemaDialogViewFunction · 0.90
onTableMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected