ctrlplusb / react-universally

A starter kit for universal react applications.
MIT License
1.7k stars 244 forks source link

asyncBootstrapper.then doesn't wait for actions to be completed #590

Closed oyeanuj closed 5 years ago

oyeanuj commented 5 years ago

Hi @ctrlplusb, not sure if this is an issue with asyncBootstrapper or the way we have used it here, but I noticed that when I am in asyncBootstrapper.then here, and I do store.getState() to insert in the Redux store, I get an older state while requests are still resolving?

Somewhere I was expecting the asyncBootstrapper to wait until the React jobs finish resolving and then call the then? If that was so, I assume it would get the right version of the store?