redux-action-enhancer-middleware
Middleware that provides an enhancing function to dispatched actions, with optional filtering to target only certain actions.
Install
npm i -S redux-action-enhancer-middleware
Example
; const options = true {...action}; const store = ;
API
redux-action-enhancer-middleware takes an options object with an optional filter and a required enhancer.
Filter
true
Function that receive an action and returns a boolean that determines if the enhancer should be invoked.
Enhancer
nextAction
Function that receives a dispatch, getState, and action. The enhancer returns an action.