aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/redux/store.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-22 05:19:31 +0800
committerFabio Berger <me@fabioberger.com>2018-11-22 05:19:31 +0800
commit83a043e6397421db0d1d5b8059341b84eeb1e1a7 (patch)
treeb7685c0285283ebce73786a2e8b0ff0996eeb243 /packages/instant/src/redux/store.ts
parent8175192f60e2c2827f6e7d664fbe8bf2d9ddee9c (diff)
parentf46a49fd13c88dd86c9661d76bace18844642c04 (diff)
downloaddexon-0x-contracts-master.tar
dexon-0x-contracts-master.tar.gz
dexon-0x-contracts-master.tar.bz2
dexon-0x-contracts-master.tar.lz
dexon-0x-contracts-master.tar.xz
dexon-0x-contracts-master.tar.zst
dexon-0x-contracts-master.zip
Merge branch 'development'master
* development: (81 commits) Publish Updated CHANGELOGS print out error message and stack immediately return the patch incremented version if no changelog entries exist Put python package above TS/JS packages Reduce title size reduce text side in README Improve top-level README Fix prettier remove unused flag Add CHANGELOG entry Fix additional comments Improve comments Add migrations, contract-addresses and contract-artifacts to Developers home Create migrations doc reference page Add additional CHANGELOG to types package Add CHANGELOG entry Fix prettier Fix `SimpleContractArtifact` type Update abi-gen-wrappers ...
Diffstat (limited to 'packages/instant/src/redux/store.ts')
-rw-r--r--packages/instant/src/redux/store.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts
index 20710765d..11bba3876 100644
--- a/packages/instant/src/redux/store.ts
+++ b/packages/instant/src/redux/store.ts
@@ -1,7 +1,8 @@
import * as _ from 'lodash';
-import { createStore, Store as ReduxStore } from 'redux';
-import { devToolsEnhancer } from 'redux-devtools-extension/developmentOnly';
+import { applyMiddleware, createStore, Store as ReduxStore } from 'redux';
+import { composeWithDevTools } from 'redux-devtools-extension/developmentOnly';
+import { analyticsMiddleware } from './analytics_middleware';
import { createReducer, State } from './reducer';
export type Store = ReduxStore<State>;
@@ -9,6 +10,6 @@ export type Store = ReduxStore<State>;
export const store = {
create: (initialState: State): Store => {
const reducer = createReducer(initialState);
- return createStore(reducer, initialState, devToolsEnhancer({}));
+ return createStore(reducer, initialState, composeWithDevTools(applyMiddleware(analyticsMiddleware)));
},
};