-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add redux toolkit and fix auth HOC
- Loading branch information
1 parent
0aaf261
commit 05c97e7
Showing
7 changed files
with
74 additions
and
1,298 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { combineReducers } from 'redux'; | ||
|
||
import auth from './auth_reducer'; | ||
import user from './user_reducer'; | ||
|
||
const rootReducer = combineReducers({ | ||
auth, | ||
user | ||
}); | ||
|
||
export default rootReducer; | ||
export default { | ||
user, | ||
auth | ||
}; |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { configureStore } from '@reduxjs/toolkit' | ||
import slices from './slices' | ||
import reducers from './reducers' | ||
export const store = configureStore({ | ||
reducer: {...slices, ...reducers}, | ||
middleware: (getDefaultMiddleware) => | ||
getDefaultMiddleware({ | ||
serializableCheck: false | ||
}) | ||
}) |
Oops, something went wrong.