Skip to content

Instantly share code, notes, and snippets.

@yaralahruthik
Created December 7, 2021 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaralahruthik/299d5154964f51498f4eb725dd429033 to your computer and use it in GitHub Desktop.
Save yaralahruthik/299d5154964f51498f4eb725dd429033 to your computer and use it in GitHub Desktop.
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