Skip to content
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

Waiting for all async actions to complete #450

Closed
kkotlarski opened this issue Aug 9, 2015 · 2 comments
Closed

Waiting for all async actions to complete #450

kkotlarski opened this issue Aug 9, 2015 · 2 comments

Comments

@kkotlarski
Copy link

Hi guys
I've been playing with Alt over the weekend and I like it a lot. I've created an isomorphic PoC with data sources as described in documentation. There is one thing I can't figure out - how to wait with flush() for all promises returned by data sources to be resolved. The point is to complete all request started during component initialisations and send complete footprint to the browser.

@taion
Copy link
Collaborator

taion commented Aug 10, 2015

This is actually what the Iso render loops are for. Currently in the process of revising, see e.g. #393 and #400. #284 is what we currently have, though.

@kkotlarski
Copy link
Author

Thanks - I made it work on the server-side with Alt singletons. Is there a way to make it work with Alt instances? I guess I still need to wait for #364 to use it with react-router.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants