Use destructuring in arg in order to avoid misleading variable name. Variable was called store however as middleware is passed only the dispatch and getState methods of the store. Therefore naming this arg "store" is misleading as argument does not represent the entire store but only a subset of it comprising 2 methods.
Use destructuring in arg in order to avoid misleading variable name. Variable was called store however as middleware is passed only the dispatch and getState methods of the store. Therefore naming this arg "store" is misleading as argument does not represent the entire store but only a subset of it comprising 2 methods.