Untitled
unknown
plain_text
a year ago
376 B
84
Indexable
Never
import { setupListeners } from "@reduxjs/toolkit/query"; import { api } from "state/api" //setup for toolkit query const store = configureStore({ reducer: { global: globalReducer, //redux toolkit query [api.reducerPath]: api.reducer, }, middleware: (getDefault) => getDefault().concat(api.middleware), }); setupListeners(store.dispatch);