doc: add configureStore function to store file
This commit is contained in:
1 parent
cdbccd35cf
commit
de55bfa2fa
1 file changed
+12
@@ -0,0 +1,12 @@
|
|||||||
|
import { configureStore } from '@reduxjs/toolkit';
|
||||||
|
import { tmdbApi } from '../services/TMDB';
|
||||||
|
import genreOrCategoryReducer from '../features/currentGenreOrCategory';
|
||||||
|
import userReducer from '../features/auth';
|
||||||
|
|
||||||
|
export default configureStore({
|
||||||
|
reducer: {
|
||||||
|
[tmdbApi.reducerPath]: tmdbApi.reducer,
|
||||||
|
currentGenreOrCategory: genreOrCategoryReducer,
|
||||||
|
user: userReducer,
|
||||||
|
},
|
||||||
|
});
|
||||||
Reference in new issue
Block a user