1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-20 02:00:49 +00:00
strimertul/frontend/src/store/index.ts

19 lines
449 B
TypeScript
Raw Normal View History

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,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
2021-05-02 12:29:43 +00:00
serializableCheck: false,
}).concat(thunkMiddleware),
2021-05-02 12:29:43 +00:00
devTools: true,
});
export type RootState = ReturnType<typeof store.getState>;
export default store;