/
psyhack
/
chat-app
Обзор
Документация
Войти
/
psyhack
/
chat-app
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/store/index.js
17 строк
596 B
sanchine
load project
19 июн 2024, 16:50
Не верифицирован
19 июн 2024, 16:50
3b45049
Код
Авторство
О чём код?
import { configureStore, applyMiddleware } from "@reduxjs/toolkit"; import { composeWithDevTools } from "redux-devtools-extension"; import { authReducer } from "./reducers/auth"; import { chatReducer } from "./reducers/chat"; import { dialogsReducer } from "./reducers/dialogs"; // Automatically adds the thunk middleware and the Redux DevTools extension export const store = configureStore({ // Automatically calls `combineReducers` reducer: { auth: authReducer, chat: chatReducer, dialogs: dialogsReducer }, devTools: true // disable in production })