agraboso / agraboso/redux-api-middleware
Bailout option Should Throw Error to Reducer
未关闭
enhancement
- 主要语言
- JavaScript
- 星标
- 1.5k
- 派生
- 190
- PR 合并指标
- 30 天内没有已合并 PR
描述
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..
贡献指南
评估
这个 Issue 还没有评估数据。