MCPcopy
hub / github.com/dubinc/dub / checkDevice

Function checkDevice

packages/ui/src/hooks/use-media-query.ts:29–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28 useEffect(() => {
29 const checkDevice = () => {
30 setDevice(getDevice());
31 setDimensions(getDimensions());
32 };
33
34 // Initial detection
35 checkDevice();

Callers 1

useMediaQueryFunction · 0.85

Calls 2

getDeviceFunction · 0.85
getDimensionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…