-
What package(s) are you using?
Detailed description
Issue: If It uses
Yes,
I expected to have same height for both tiles, regardless whether they're inside a hidden component or visible normally. Maybe the prop
Chrome
newest Steps to reproduce the issue
https://codesandbox.io/s/keen-bush-ztref?file=/src/index.js Additional information
properly calculated height (when visible on mount) when switching to second tab, wrong height for the same component. it should be the same as on the first tab |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
yeah it looks like because these tiles are placed within tabs, they are mounted to the DOM and never rerendered since the visibility is toggled by the |
Beta Was this translation helpful? Give feedback.
-
Thank you for checking this out! Indeed, this can be done in user-land. I opened a new code-sandbox with react-intersection-observer: https://codesandbox.io/s/condescending-pine-zmbbu?file=/src/index.js and it works great. |
Beta Was this translation helpful? Give feedback.
Thank you for checking this out! Indeed, this can be done in user-land. I opened a new code-sandbox with r…