MCPcopy
hub / github.com/yocontra/react-responsive / useIsUpdate

Function useIsUpdate

src/useMediaQuery.ts:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30const useIsUpdate = () => {
31 const ref = useRef(false)
32
33 useEffect(() => {
34 ref.current = true
35 }, [])
36
37 return ref.current
38}
39
40const useDevice = (
41 deviceFromProps?: MediaQueryMatchers

Callers 2

useMatchMediaFunction · 0.85
useMediaQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…