stratiformltd / react-loadable-visibility

A wrapper around react-loadable and @loadable/component to load elements once they are visible on the page.
BSD 3-Clause "New" or "Revised" License
1.01k stars 31 forks source link

How to wait until fetches are complete before showing loadable component? #20

Open denny64 opened 5 years ago

denny64 commented 5 years ago

How do i make the loadable component wait until fetches are complete?

tazsingh commented 5 years ago

Hey sorry I'm just getting back from vacation and will be able to respond to this properly on Monday.

I'm also planning on exploring a Suspense solution for this which may solve your problem more elegantly.

Until then, if you could provide a bit more detail as to the shape of your application, how the requests currently look, and how you would want them to look, it would make it easier for me to provide an appropriate solution.

Thanks!