Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
useMediaQuery
Function · 0.85
Calls
2
getDevice
Function · 0.85
getDimensions
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…