Revize 8c57f958
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/redux/store.ts | ||
---|---|---|
6 | 6 |
import catalogReducer from '../Catalog/catalogSlice' |
7 | 7 |
import { composeWithDevTools } from 'redux-devtools-extension' |
8 | 8 |
import notificationReducer from '../Notification/notificationSlice' |
9 |
import trackingToolReducer from '../TrackingTool/trackingToolSlice' |
|
10 |
import { enableMapSet } from 'immer' |
|
11 |
|
|
12 |
enableMapSet() |
|
9 | 13 |
|
10 | 14 |
const composeEnhancers = composeWithDevTools({}) |
11 | 15 |
|
... | ... | |
15 | 19 |
user: userReducer, |
16 | 20 |
theme: themeReducer, |
17 | 21 |
catalog: catalogReducer, |
18 |
notification: notificationReducer |
|
22 |
notification: notificationReducer, |
|
23 |
trackingTool: trackingToolReducer |
|
19 | 24 |
}), |
20 | 25 |
process.env.REACT_APP_DEV_ENV === 'true' |
21 | 26 |
? composeEnhancers( // ComposeEnhancers will inject redux-devtools-extension |
Také k dispozici: Unified diff
refactor to use Redux instead of localstate
re #9629