We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I suggest to extend allSettled api like this:
allSettled
const scope = fork() allSettled(scope) // Promise, which will be resolved, once there is no pending calculations in this scope
In some cases there is a need to track, if there are pending effects (like requests) before some action - e.g. before route transition
Something like this:
const onLinkClick = () => { allSettled(currentScope).then(() => { router.push(...) }) }
The text was updated successfully, but these errors were encountered:
Released in effector 22.5.0
Sorry, something went wrong.
zerobias
No branches or pull requests
Proposal
I suggest to extend
allSettled
api like this:Use case
In some cases there is a need to track, if there are pending effects (like requests) before some action - e.g. before route transition
Something like this:
The text was updated successfully, but these errors were encountered: