import Config from "../utils/config"; export default { namespace: "app", state: {}, subscriptions: { setupHistory({ dispatch, history }) { history.listen(location => { if (location.pathname === "/") { dispatch({ type: "getList", payload: {} }); } }); } }, effects: {}, reducers: { updateState(state, { payload }) { return { ...state, ...payload }; } } };