Closed sagartmg closed 3 years ago
fixed using minWidth instted of minDeviceWidth in const isDesktopOrLaptop = useMediaQuery({ minDeviceWidth: 1200 }) const isTablet = useMediaQuery({ maxDeviceWidth: 1199, minDeviceWidth: 768 }) const isMobileDevice = useMediaQuery({ maxDeviceWidth: 767 })
while using toggle-device-toolbar in chrome, it does work but while resizing chrome window, it doesnot
// code
// sizes according to bootstrap const isDesktopOrLaptop = useMediaQuery({ minDeviceWidth: 1200 }) const isTablet = useMediaQuery({ maxDeviceWidth: 1199, minDeviceWidth: 768 }) const isMobileDevice = useMediaQuery({ maxDeviceWidth: 767 })
and in render method
Device Test!
works while using chrome toggle device toolbar
doesnot works while doing simple window resizing.