Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CommandCodeAI/BaseAI
/ handleResize
Function
handleResize
apps/baseai.dev/src/lib/hooks/use-is-mobile.tsx:16–19 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
15
useEffect(() => {
16
function handleResize() {
17
const isMobileDevice = window.innerWidth < MOBILE_BREAKPOINT;
18
setIsMobile(isMobileDevice);
19
}
20
21
// Add event listener
22
window.addEventListener(
'resize'
, handleResize);
Callers
1
useIsMobile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected