Commit 59278c1c authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

json serialise logger middleware

parent c56692f7
export default store => next => action => {
// console.log('---> dispatching', action)
let result = next(action)
console.log("---> action:", action, "result of action:", store.getState())
console.log("---> action:", action, "result of action:", JSON.stringify(store.getState(), undefined, 2))
// 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