Skip to content

Commit

Permalink
refactor: disable logger
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Oct 28, 2024
1 parent c67ddc2 commit 0672f36
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/src/middleware/logger.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// eslint-disable-next-line
const logger = (store) => (next) => (action) => {
console.group(action.type)
console.log("The action: ", action)
// console.group(action.type)
// console.log("The action: ", action)
//this is like dispatching an action
//to get the next state
const returnValue = next(action)
console.log("The new state: ", store.getState())
console.groupEnd()
// console.log("The new state: ", store.getState())
// console.groupEnd()

return returnValue
}
Expand Down

0 comments on commit 0672f36

Please sign in to comment.