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

How to handle async mutator #51

Open
BelfordZ opened this issue Jun 25, 2020 · 0 comments
Open

How to handle async mutator #51

BelfordZ opened this issue Jun 25, 2020 · 0 comments

Comments

@BelfordZ
Copy link
Member

Is your feature request related to a problem? Please describe.
If I return a promise from a mutator, i need to be able to await the loading of all the promises.

Describe the solution you'd like
If the mutator returns a promise, then the root call (depth == 0) should collect the promises and return Promise.all

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

1 participant