/
Torward
/
flash-spring
Обзор
Документация
Войти
/
Torward
/
flash-spring
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/store/store.js
19 строк
754 B
Torward
dropdown menu
11 фев 2024, 08:34
11 фев 2024, 08:34
c500a62
Код
Авторство
О чём код?
import {applyMiddleware, combineReducers, legacy_createStore} from "redux"; import {thunk} from "redux-thunk"; import state from "../redux/state"; export const rootReducers = combineReducers({ // user: (state = { // user: null, // isAuthenticated: false, // isAuthenticating: false, // isAuthenticatingError: null, // isAuthenticatingSuccess: false, // isAuthenticatingSuccessMessage: null, // isAuthenticatingSuccessMessageColor: null, // isAuthenticatingSuccessMessageDuration: null, // isAuthenticatingSuccessMessageIcon: null, // isAuthenticatingSuccessMessageTitle: null, // }), }) export const store = legacy_createStore(rootReducers, applyMiddleware(thunk));