yocontra / react-responsive

CSS media queries in react - for responsive design, and more.
https://contra.io/react-responsive
MIT License
7.04k stars 298 forks source link

Version 9 broke setting width with context #287

Closed Mathieuu closed 2 years ago

Mathieuu commented 2 years ago

Hello,

See this example: https://codesandbox.io/s/gallant-forest-0spgn?file=/src/App.jsx

I set a context with a width of 500px and then ask a query if I am between 450 and 550. Version 9.0.0beta5 returns false. If I switch to version 8.2.0, it will return true. The regression happened between 8.2.0 and 9.0.0.beta1.

yocontra commented 2 years ago

Fix published in latest 9.0.0-beta6