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
After a refactoring I found that react-sizeme was not working properly anymore; my size.width was 0.
This was my original call (I don't think the HOC version is important): sizeMe()(App)
The issue in the end was the composition of my App component: before the code change the main element was a div, while after that div is wrapped inside the the style-components's StyleSheetManager and a Fragment.
After a refactoring I found that react-sizeme was not working properly anymore; my
size.width
was 0.This was my original call (I don't think the HOC version is important):
sizeMe()(App)
The issue in the end was the composition of my
App
component: before the code change the main element was adiv
, while after thatdiv
is wrapped inside the the style-components'sStyleSheetManager
and aFragment
.The fix was easy:
If I'm right, my suggestion is to improve the documentation by explicitly report this behavior.
The text was updated successfully, but these errors were encountered: