We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7732c0c commit 3e36a19Copy full SHA for 3e36a19
resources/js/hooks/use-mobile.tsx
@@ -13,7 +13,7 @@ function mediaQueryListener(callback: (event: MediaQueryListEvent) => void) {
13
}
14
15
function isSmallerThanBreakpoint() {
16
- return window.innerWidth < MOBILE_BREAKPOINT;
+ return mql.matches;
17
18
19
export function useIsMobile() {
0 commit comments