MCPcopy Create free account
hub / github.com/dailydotdev/apps / handler

Function handler

packages/shared/src/hooks/useMedia.ts:28–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 useEffect(() => {
27 const mediaQueryLists = getMedia();
28 const handler = () => setValue(getValue(mediaQueryLists));
29 handler();
30 const isModern = 'addEventListener' in mediaQueryLists[0];
31 mediaQueryLists.forEach((mql) => {

Callers 2

useMediaFunction · 0.70
withSelectionGuardFunction · 0.50

Calls 1

getValueFunction · 0.85

Tested by

no test coverage detected