UNPKG

@uimkit/uikit-react

Version:

<img style="width:64px" src="https://mgmt.uimkit.chat/media/img/avatar.png"/>

37 lines (34 loc) 1.63 kB
import { applyMiddleware, createStore, compose } from 'redux'; import ReduxThunk from '../node_modules/.pnpm/redux-thunk@2.4.2_redux@4.2.1/node_modules/redux-thunk/es/index.js'; import rootReducer from './rootReducer.js'; import '../types/models.js'; import '../types/events.js'; import './accounts/actions.js'; import 'tslib'; import './accounts/selectors.js'; import '../node_modules/.pnpm/invariant@2.2.4/node_modules/invariant/invariant.js'; import 'i18next'; import './conversations/actions.js'; import '../node_modules/.pnpm/lodash.flatten@4.4.0/node_modules/lodash.flatten/index.js'; import '../node_modules/.pnpm/lodash.some@4.6.0/node_modules/lodash.some/index.js'; import './messages/actions.js'; import './contacts/actions.js'; import preloadedState from './preloadState.js'; // Setup Redux Dev Tools var composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || compose; // Note: we do not attempt to make the proper types by passing // types to the parameters of createStore. The type definitions there are tricky // to work with and possibly buggy as of Redux 4.0.4. // Instead, we create a definition of the final store we want and declare the // CreateAppStore to return that type of store. /** * Create a redux store configured for this application */ var createAppStore = function (thunkContext) { var storeEnhancer = composeEnhancers(applyMiddleware(ReduxThunk.withExtraArgument(thunkContext))); return createStore(rootReducer, preloadedState, storeEnhancer); }; export { composeEnhancers, createAppStore }; //# sourceMappingURL=index.js.map