I am new to react and redux, try to understand in redux middleware, From where the action parameter came?
const loggerMiddleware = ({dispatch, getState}) => (next) => (action) => {
console.log("Logger Middleware");
if(typeof action !== 'function'){
console.log("Action type", action.type);
}
next(action);
}
any help greatly appreciated!