-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
refreshMode: 'debounce'
delays first render significantly.
#99
Comments
You can disable the placeholder render feature by setting the global flag: import sizeMe from 'react-sizeme';
sizeMe.enableSSRBehaviour = true; That's a good caveat you caught in regards to switching out to debounce. I'll have to amend the docs. |
I am also going to consider creating an alias to the above property. Something like Will give it some thought. |
Hmm, could work. Is that better than explicitly checking the size and bypassing |
I am going to give this one some thought and some time to simmer. I have a use case in my own project for the use of debounce so I'll get a first hand sense of the issues around the current implementation. I may need to consider some further configuration options, but definitely want to try and keep things as simple as possible. |
The workaround is working well for me, thanks for the quick response! |
It should not wait to read the size from the DOM for the first render.
The text was updated successfully, but these errors were encountered: