Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 4a2ac9a8

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

re #9369 item + catalog refactor

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'
7 6
import themeReducer from '../Theme/themeReducer'
8 7

  
9 8

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

  

Také k dispozici: Unified diff