Update May 21 by Elvis

This commit is contained in:
belviskhoremk
2026-05-21 22:24:22 +00:00
parent 57f3311278
commit 342ba2c867
12 changed files with 71 additions and 59 deletions

View File

@@ -11,7 +11,7 @@ export function useIsMobile() {
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
}
mql.addEventListener("change", onChange)
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
React.startTransition(() => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT))
return () => mql.removeEventListener("change", onChange)
}, [])