Izhaki / useSize

A react hook to obtain DOM elements' size.
MIT License
0 stars 0 forks source link

Does it support conditional rendering? #2

Open kajweb opened 2 years ago

kajweb commented 2 years ago

https://stackblitz.com/edit/izhakiuse-size-sfasnfasg?file=App.tsx

Izhaki commented 1 year ago

Hi,

It should (and if it doesn't I can fix that). I can't quite see anything on stackblitz (no button) so can't quite debug.

Could you provide more details on what exactly isn't working?

Thanks!

kajweb commented 3 months ago

click before: image

click after: image

You can see that when the element is not displayed correctly, the height can still be obtained.