123456789101112131415 |
- import { Dispatch } from 'react';
- // import { SET_CURRENT_PAGE } from '../constants/actionTypes';
- const applyMiddleware = (dispatch: Dispatch<any>) => (
- action: { type: string; payload?: any },
- ): void => {
- dispatch(action);
- // if (action.type === SET_CURRENT_PAGE) {
- // dispatch({type: UPDATE_RENDERING_QUEUE, payload: []});
- // }
- };
- export default applyMiddleware;
|