Revize 394f2d16
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/redux/store.ts | ||
---|---|---|
4 | 4 |
import thunk from 'redux-thunk' |
5 | 5 |
import userReducer from '../Auth/userSlice' |
6 | 6 |
import themeReducer from '../Theme/themeReducer' |
7 |
import catalogReducer from '../Catalog/catalogSlice' |
|
7 | 8 |
|
8 | 9 |
|
9 | 10 |
// Store holds shared state in the application |
10 | 11 |
const store = createStore( |
11 |
combineReducers({ user: userReducer, theme: themeReducer }), |
|
12 |
combineReducers({ user: userReducer, theme: themeReducer, catalog: catalogReducer }),
|
|
12 | 13 |
applyMiddleware(thunk) // Thunk middleware so we can async fetch data from the api |
13 | 14 |
) |
14 | 15 |
|
Také k dispozici: Unified diff
catalog slice
re #9545