I bumped into a problem and i'm not sure if it's because of axios or this middleware,
but when I'm trying to return an updated array of elements, I need to pass index to the reducer
return {
type: ActionTypes.SOMETHING,
payload: promiseInstance,
index,
}
either it's not detecting it or i'm doing something wrong (bets on the ladder) as with
only type and payload I can hook into with with .then from the component where I dispatch the action, but with adding extra field I cannot