Commit be165927 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

Log action middleware with json

parent 6b0dcf8d
export default store => next => action => {
// console.log('---> dispatching', action)
let result = next(action)
console.log("---> action:", action, "result of action:", JSON.stringify(store.getState(), undefined, 2))
console.log("---> action:", action, "result of action:", store.getState())
// console.log("ACTION: " + JSON.stringify(action))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment