apiInterceptorMiddleware.ts 234 B

1234567891011121314
  1. import {monitoreAction} from './monitoredAction'
  2. export const apiInterceptorMiddleware = ({dispatch, getState}) => (next) => (action) => {
  3. monitoreAction(action)
  4. const nextAction = next(action)
  5. return nextAction
  6. }