minor govno
This commit is contained in:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user