MCPcopy 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

useMediaFunction · 0.70
emitRouterEventFunction · 0.70
withSelectionGuardFunction · 0.50

Calls 1

getValueFunction · 0.70

Tested by 1

emitRouterEventFunction · 0.56