I'm trying to manage the loading state of request fired inside thunks based on the thunks startType, successType and failType actions. I have listeners in place on each thunk based on a naming convention. My issue right now is that thunks do not fire the failType action when a promise is rejected. I could not find a store configuration parameter to enable this or a general way to handle this without touching each thunk since from what I've seen the fail function comes from the helpers param.
This is my current approach to handle the loading and errors
I'm trying to manage the loading state of request fired inside thunks based on the thunks startType, successType and failType actions. I have listeners in place on each thunk based on a naming convention. My issue right now is that thunks do not fire the failType action when a promise is rejected. I could not find a store configuration parameter to enable this or a general way to handle this without touching each thunk since from what I've seen the fail function comes from the helpers param.
This is my current approach to handle the loading and errors