-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(frontend): configured redux-logger
- Loading branch information
1 parent
afaa997
commit 6aff19c
Showing
4 changed files
with
654 additions
and
724 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { configureStore } from '@reduxjs/toolkit'; | ||
import { createLogger } from 'redux-logger'; | ||
import { rootReducer } from './reducers'; | ||
|
||
const logger = createLogger({ | ||
// Customize the logger options as needed | ||
}); | ||
|
||
const store = configureStore({ | ||
reducer: rootReducer, | ||
middleware: (getDefaultMiddleware) => | ||
getDefaultMiddleware().concat(logger), | ||
}); | ||
|
||
export type AppDispatch = typeof store.dispatch; | ||
export type AppState = ReturnType<typeof store.getState>; |
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,3 @@ | ||
export const rootReducer = { | ||
// Add your reducers here | ||
}; |
Oops, something went wrong.