Created
July 12, 2021 11:19
-
-
Save rao123dk/4f578e6a56f17c5c7cf2fa77841dee2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const customMiddleWare = storeAPI => next => action => { | |
| console.log("prev state:", storeAPI.getState()) | |
| console.log("dispatching Actions", action); | |
| console.log("next state:", storeAPI.getState()) | |
| return next(action); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment