Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ handler
Function
handler
packages/shared/src/hooks/useMedia.ts:40–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
hydrated = true;
39
const
mediaQueryLists = getMedia();
40
const
handler = () => setValue(getValue(mediaQueryLists));
41
handler();
42
const
isModern =
'addEventListener'
in mediaQueryLists[0];
43
mediaQueryLists.forEach((mql) => {
Callers
3
useMedia
Function · 0.70
emitRouterEvent
Function · 0.70
withSelectionGuard
Function · 0.50
Calls
1
getValue
Function · 0.70
Tested by
1
emitRouterEvent
Function · 0.56