agraboso / agraboso/redux-api-middleware
Bailout option Should Throw Error to Reducer
Abierto
enhancement
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.5k
- Forks
- 190
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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..
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.