MCPcopy Create free account
hub / github.com/msgbyte/tailchat / handler

Function handler

client/web/src/hooks/useWindowSize.ts:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 useEffect((): (() => void) | void => {
16 if (isBrowser) {
17 const handler = () => {
18 setState({
19 width: window.innerWidth,
20 height: window.innerHeight,
21 });
22 };
23
24 window.addEventListener('resize', handler);
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected