mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
17 lines
632 B
TypeScript
17 lines
632 B
TypeScript
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 configureStoreForProd = () =>
|
|
createStore(rootReducer, applyMiddleware(thunk, plugins.middleware, thunk, writeMiddleware, effects));
|
|
|
|
export default configureStoreForProd;
|