/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
lib/store/configure-store.dev.ts
21 строка
772 B
Labhansh Agrawal
sort imports
25 июл 2023, 21:46
25 июл 2023, 21:46
36ff6e9
Код
Авторство
О чём код?
import {composeWithDevTools} from '@redux-devtools/extension'; import {createStore, applyMiddleware} from 'redux'; import _thunk from 'redux-thunk'; import type {ThunkMiddleware} from 'redux-thunk'; import type {HyperState, HyperActions} from '../../typings/hyper'; import rootReducer from '../reducers/index'; import effects from '../utils/effects'; import * as plugins from '../utils/plugins'; import writeMiddleware from './write-middleware'; const thunk: ThunkMiddleware<HyperState, HyperActions> = _thunk; const configureStoreForDevelopment = () => { const enhancer = composeWithDevTools(applyMiddleware(thunk, plugins.middleware, thunk, writeMiddleware, effects)); return createStore(rootReducer, enhancer); }; export default configureStoreForDevelopment;