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