Reducers keep status=GET when there is an error
Closed this issue · 0 comments
diegocasmo commented
Action creators don't tell reducers to change their status to NONE
when there is an error during fetch/get
. In addition to adding the error to the errors reducer (as it is done now), the catch
part of each action creator should somehow signal to change the reducer status
attribute to NONE
as well.
The effects of this misbehavior can be seen when trying to see/update a workout/exercise that doesn't exist: http://localhost:3000/workouts/123, http://localhost:3000/workouts/update/123.