2021-11-22 09:13:11 +00:00
|
|
|
import { configureStore } from '@reduxjs/toolkit';
|
2021-05-02 12:29:43 +00:00
|
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
import apiReducer from './api/reducer';
|
|
|
|
|
|
|
|
const store = configureStore({
|
|
|
|
reducer: {
|
|
|
|
api: apiReducer.reducer,
|
|
|
|
},
|
2021-11-22 09:13:11 +00:00
|
|
|
middleware: (getDefaultMiddleware) =>
|
|
|
|
getDefaultMiddleware({
|
2021-05-02 12:29:43 +00:00
|
|
|
serializableCheck: false,
|
2021-11-22 09:13:11 +00:00
|
|
|
}).concat(thunkMiddleware),
|
2021-05-02 12:29:43 +00:00
|
|
|
devTools: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
|
|
|
|
|
|
export default store;
|