Created
December 7, 2021 16:23
-
-
Save yaralahruthik/299d5154964f51498f4eb725dd429033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { configureStore } from '@reduxjs/toolkit'; | |
import { todoApi } from './services/todo'; | |
export const store = configureStore({ | |
reducer: { | |
[todoApi.reducerPath]: todoApi.reducer, | |
}, | |
middleware: (getDefaultMiddleware) => | |
getDefaultMiddleware().concat(todoApi.middleware), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment