marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Using with React, I get height 0 after re-rendering #296

Closed carloscarvallo closed 4 years ago

carloscarvallo commented 4 years ago

The library works great but on React, Resize Sensor throws value 0 for the node's height (obtained from a React ref) on the the child component that I want to watch, this is happening after a state update

carloscarvallo commented 4 years ago

any ideas of why this is happening, I can attach an example if you're interested, thank you!