From fa1409d205479e9943f7b7db96a4b56ff1d29d7d Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Wed, 28 Feb 2024 18:20:38 -0800 Subject: Resolve type errors --- src/store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/store.ts') diff --git a/src/store.ts b/src/store.ts index 3465bff..d3e02d2 100644 --- a/src/store.ts +++ b/src/store.ts @@ -2,7 +2,7 @@ import { configureStore } from '@reduxjs/toolkit'; import { apiSlice } from './apiSlice'; import authReducer from './features/auth/authSlice'; -export default configureStore({ +const store = configureStore({ reducer: { [apiSlice.reducerPath]: apiSlice.reducer, auth: authReducer @@ -11,5 +11,6 @@ export default configureStore({ getDefaultMiddleware().concat(apiSlice.middleware) }); +export default store; export type RootState = ReturnType export type AppDispatch = typeof store.dispatch -- cgit v1.2.3