redux-utilities / redux-promise

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

return payload #6

Closed ustccjw closed 9 years ago

ustccjw commented 9 years ago

we should return payload, then we can get value when call action function as flummox.

ustccjw commented 9 years ago

oh, it's my fault. we should return the final action.

so in logger-middleware, we should:

export default function loggerMiddleware(next) {
    return action => {
        console.log(action)
        return next(action)
    }
}