Skip to content

Extra fields in action creator breaks detection of promise(?) #27

@oltsa

Description

@oltsa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions