-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with contentRect.bounds #137
Comments
Ah, sorry about that! It looks like a regression from here 😞. I'll work on getting a fix together. Just want to make sure you aren't relying on |
Thanks for quick response! And yes I believe that is correct. |
I was about to post the same issue. No reaction on initial render, but the data is passed properly to We do not use |
Should be fixed under |
Hi, we're using react-measure to determine the size of an image we want to render. It seems that after updating to the latest release (v2.2.6),
contentRect.bounds.width
andcontentRect.bounds.height
are consistently returning 0, which prevents our component from loading.Here is a comparison showing the component using v2.2.6 versus v2.2.5. And some additional context on how we're using
contentRect
.Is this intended behavior or possibly a regression introduced by changes in the last release? Any advice would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: