agraboso / agraboso/redux-api-middleware
Bailout option Should Throw Error to Reducer
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
Use Case:
Using Auth middleware to check if user logged in (via a Token). In the case they are not logged in (there is no Token or it is expired), should be able to throw an error and get out before making the request that you already know will fail.
Maybe this defeats purpose of bailout, but think I am going to fork and implement..
Contributor guide
Assessment
This issue has not been assessed yet.