You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Sizes won't update the props when a child component is also using the resize event.
Example - A child component of the component that I am using withSizes on has a resize handler defined.
window.addEventListener('resize', this.resize);
// using this.resize to re-render (child) component in case window resizes
When the above is defined, react sizes fails to update the props passed to the parent component.
When I remove the resize handler from the child component and make no other changes, react-sizes works as expected. That's why I think there could be a bug here.