redux-utilities / redux-promise

FSA-compliant promise middleware for Redux.
MIT License
2.67k stars 134 forks source link

should add action.payload.promise ? #55

Open luqingxuan opened 6 years ago

luqingxuan commented 6 years ago

i notice that, redux-promise source code:

if(isPromise(action))

if(isPromise(action.payload))

but, i notice redux-promise-middleware add another if

if(isPromise(action.payload.promise))

so i think can redux-promise add it, and then i can use the same logic, when i use both middleware?