Files
dry-wash-pl/src/__data__/store.ts
Primakov Alexandr Alexandrovich 0027cc09b1
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
masters test
2025-02-20 13:55:05 +03:00

17 lines
424 B
TypeScript

import { configureStore } from '@reduxjs/toolkit';
import { api } from './service/api';
export const store = configureStore({
reducer: {
[api.reducerPath]: api.reducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false
}).concat(api.middleware),
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;