MCPcopy
hub / github.com/daeuniverse/daed / handler

Function handler

apps/web/src/hooks/index.ts:30–30  ·  view source on GitHub ↗
(e: MediaQueryListEvent)

Source from the content-addressed store, hash-verified

28
29 const mediaQuery = window.matchMedia(query)
30 const handler = (e: MediaQueryListEvent) => setMatches(e.matches)
31
32 // Sync state when query changes - this is intentional since the query prop may change
33 // eslint-disable-next-line react-hooks/set-state-in-effect

Callers 1

requestMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected