jaredLunde/react-hook

useMediaQuery doesn't work on Safari IOS device

GimpMaster opened this issue · 1 comments

Describe the bug
I've been using the useMediaQuery perfectly in Edge, Chrome on a desktop, but no matter what the useMediaQuery("(max-width: 768px)") always returns false on Safari.

Any thoughts?

Here is the exact code running on an Iphone XS Max 14.X IOS

const isTabletOrLower = useMediaQuery('(max-width: 768px');

I'm sorry, I'm an idiot and missed the closing ")". Looks like Chromium is ok with mistakes but safari slaps down the hammer.