redux-toolkit
redux-toolkit copied to clipboard
rethrow errors from dispatching async thunk actions
currently, if any reducers throw an error when responding to the pending action (for example, if you had a typo) the error would get swallowed into a rejected action
this change instead resurfaces that error, as suggested by Lenz a while ago
TODO: see if this same approach can be applied to #3795