Open xzilja opened 8 years ago
I am also running into this issue.
If I comment the following like so /*if (!_fluxStandardAction.isFSA(action)) { return isPromise(action) ? action.then(dispatch) : next(action); } */
it works. This is from what I've pulled from npm, version 0.5.1. In the current repo it looks like the import for FSA has been changed to import the method directly however. That shouldn't make a difference though.
As specified in https://github.com/acdlite/redux-promise/issues/27
you need to return another params in the meta
property, like:
return {
type: ActionTypes.SOMETHING,
payload: promiseInstance,
meta: { index }
}
I'm not sure why this happens, but essentially inside my reducer I receive correct expected data when my action returns:
and I receive unresolved promise if I add another item to action, like so
I need to pass index, in order to know which array item to update