MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / onResize

Function onResize

apps/web/hooks/device.tsx:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7 useResize({
8 onResize() {
9 if (window.innerWidth < 1024) {
10 setMobile(true);
11 } else {
12 setMobile(false);
13 }
14 },
15 });
16
17 return { isMobile };

Callers 1

useResizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected