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

Function usePrevious

web/pgadmin/static/js/custom_hooks.js:72–78  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

70}
71
72export function usePrevious(value) {
73 const ref = useRef();
74 useEffect(() => {
75 ref.current = value;
76 });
77 return ref.current;
78}
79
80export function useDelayDebounce(callback, args, delay) {
81 useEffect(() => {

Callers 6

GraphsFunction · 0.90
PGDReplicationFunction · 0.90
MemoryFunction · 0.90
CpuDetailsFunction · 0.90
StorageFunction · 0.90
SummaryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected