aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/store.ts
blob: 8d9fe34cbc3bf62e543e49b5d0dfcb065452db90 (plain) (blame)
1
2
3
4
5
6
7
import * as _ from 'lodash';
import { createStore, Store as ReduxStore } from 'redux';

import { reducer, State } from './reducer';

const reduxDevTools = (window as any).__REDUX_DEVTOOLS_EXTENSION__;
export const store: ReduxStore<State> = createStore(reducer, reduxDevTools && reduxDevTools());