import {
  createListenerMiddleware,
  addListener,
  removeListener
} from "@reduxjs/toolkit";
const listenerMiddleware = createListenerMiddleware();
const startSideEffect = listenerMiddleware.startListening;
const createSideEffect = addListener;
const removeSideEffect = removeListener;
const clearSideEffects = listenerMiddleware.clearListeners;
export {
  clearSideEffects,
  createSideEffect,
  listenerMiddleware,
  removeSideEffect,
  startSideEffect
};
