react-infinite-scroller icon indicating copy to clipboard operation
react-infinite-scroller copied to clipboard

How to "re-calc" the height of the body?

Open ciaoben opened this issue 6 years ago • 0 comments

I have a question, in my use case, I render as children of the component embedded tweets using this library: https://github.com/capaj/react-tweet-embed.

I am having a problem, the request to get the news items is called multiple times and way before the 80%, I am pretty sure that is because the embedded tweets are created after the first rendering happened, so the height when the full view is rendered is way different than the initial one.

Is there a way to avoid this problem? Maybe forcing a re-calc on the component?

ciaoben avatar Jun 06 '18 13:06 ciaoben