-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Add handler "subscribeAction.error" #1558
Comments
It would make more sense if the handler name is just |
This would be really, really, really awesome. Been using a timeout hack to resolve issues where I don't know if an action has errored out. |
Thanks, I updated my example. |
This is really good idea. I use subscribeAction handler to manage API calls loaders (spinners) and this feature with errors will be really useful. Waiting for it ... |
Any update on this? Using this for loading spinners as well and it is critical to know if the action has failed before the after hook is called. |
Hi, guys! Any solution for that? I'm having a problem with loading. The after method is not colling when happens a error. Some body @milesingrams found a solution for that? |
Does anyone know how to deal with this issue as of this moment? I'm throwing in pending async process id's inside the store and am using subscribeAction to capture async actions, but errors in actions makes the after method not work. |
@verhichi I'm catching any error with onError function from apollo-link-error. The setup is on ApolloClient. |
@samuelhgf |
This issue is in progress at #1531. |
close #1489 #1558 #1625 Co-authored-by: Joe Plahitko <[email protected]>
This has been added via #1740 👍 |
What problem does this feature solve?
The "subscribeAction.after" is not run if an action throws an error.
What does the proposed API look like?
I propose to add one more property for catching errors in actions:
The text was updated successfully, but these errors were encountered: