Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8042e8b3

Přidáno uživatelem Václav Honzík před více než 2 roky(ů)

re #9369 catalog tweaks

Zobrazit rozdíly:

frontend/src/features/redux/store.ts
3 3
import { persistStore } from 'redux-persist'
4 4
import thunk from 'redux-thunk'
5 5
import userReducer from '../Auth/userSlice'
6
import { catalogReducer } from '../Catalog/catalogSlice'
6 7
import themeReducer from '../Theme/themeReducer'
7 8

  
9

  
8 10
// Store holds shared state in the application
9 11
const store = createStore(
10
    combineReducers({ user: userReducer, theme: themeReducer }),
12
    combineReducers({ user: userReducer, theme: themeReducer, catalog: catalogReducer }),
11 13
    applyMiddleware(thunk) // Thunk middleware so we can async fetch data from the api
12 14
)
13 15

  

Také k dispozici: Unified diff