-
Notifications
You must be signed in to change notification settings - Fork 194
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
Changed FSA type dispatched on network errors to failureType #26
Conversation
… the following invariant always holds true: at most one requestType FSA is dispatched, followed by either a single successType or a single failureType FSA, or nothing when the requestType FSA had its error property set.
I agree with your point. About the implementation;
And since this touches functionality i'd like @agraboso to give a green light for merging. |
I updated the pull request. Previously the following invariant was true: when the Regarding your first question: I think it is okay to bail out with an error'd |
Better late than never: thank you for the PR update. Since this is a breaking change, this PR should go to the |
Any update on this? |
Previously: RSAA -> Request FSA -> Request Error FSA Now: RSAA -> Request FSA -> Failure FSA Closes agraboso#26 agraboso#44 agraboso#99
This will be changed in #175 |
Please see issue #25 for the rationale behind this pull request.
Basically, we want to make sure that the following invariant always holds true: for each
[CALL_API]
action that is handled byredux-api-middleware
,request
FSA is dispatched, andrequest
FSA is followed by either:error
property set), orsuccess
FSA or a singlefailure
FSA (when the request FSA had itserror
property unset).The actual code change is literally a single line, but the accompanying documentation change is rather more elaborate and might require some review.
Also, since the third argument
res
might now be either present or absent from thefailure
type descriptor's custompayload
andmeta
properties (when using functions), this change is not backward compatible.