minor govno

This commit is contained in:
2023-10-13 05:40:03 +03:00
parent fd74b5b79a
commit 67258c8114
17 changed files with 329 additions and 23 deletions

View File

@@ -1,14 +1,12 @@
import {configureStore} from '@reduxjs/toolkit';
import authReducer, {pokemonApi} from 'features/auth/authSlice';
import authReducer from 'features/auth/authSlice';
import {useDispatch} from "react-redux";
export const store = configureStore({
reducer: {
auth: authReducer,
[pokemonApi.reducerPath]: pokemonApi.reducer
},
middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(pokemonApi.middleware)
});
export type RootState = ReturnType<typeof store.getState>;