-
Notifications
You must be signed in to change notification settings - Fork 88
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 action to postfetch function params #166
Comments
Hi @jakeaaron Very interesting question. I think that at this moment postfetch is only way. |
But it's good feature request |
Thanks for the response @lexich. |
There is another way. You can use https://github.com/lexich/redux-api/blob/master/docs/DOCS.md#responsehandler and implement here retry logic |
Oh! I didn't realize... you can dispatch an action in responseHandler? |
Yes responsehandler is bad idea in this case. But you can write custom adapter and you'll have access to request properties. |
2 questions:
|
|
We already get request options in the function, but I am wanting to retry an action if the fetch fails. If we had the action in the postfetch I could just dispatch the action again.
Is there a different way to retry an action if it fails?
The text was updated successfully, but these errors were encountered: