MCPcopy Index your code
hub / github.com/CSFrequency/react-firebase-hooks / useIsEqualRef

Function useIsEqualRef

util/refHooks.ts:37–42  ·  view source on GitHub ↗
(
  value: T | null | undefined,
  onChange?: () => void
)

Source from the content-addressed store, hash-verified

35};
36
37export const useIsEqualRef = <T extends HasIsEqual<T>>(
38 value: T | null | undefined,
39 onChange?: () => void
40): RefHook<T | null | undefined> => {
41 return useComparatorRef(value, isEqual, onChange);
42};

Callers 2

useObjectFunction · 0.90
useListFunction · 0.90

Calls 1

useComparatorRefFunction · 0.85

Tested by

no test coverage detected