twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.87k stars 488 forks source link

SSR: renders part of component #288

Open wmertens opened 4 years ago

wmertens commented 4 years ago

When doing a two-pass SSR (initial render, wait for data, rerender), somehow parts of the children end up in the SSR result. I would expect that anything wrapped in LazyLoad would never show when rendering on the server?

Haqverdi commented 4 years ago

yes, also have problem with ssr

marcfielding1 commented 4 years ago

Interesting, we're moving to NextJS shortly so anyone about from the project to cover this off? Saying that all our stuff is pre rendered(static pages). So we might be alright.