diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-16 02:43:42 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-16 02:43:42 +0800 |
commit | 61f227e123218ba76a7fdf7fc2ee89171c2bf16c (patch) | |
tree | d821f01c41dd58e03b093a40930748dac51c2148 /packages/instant/src/redux/store.ts | |
parent | 20ed4fbbd46f359ca1436b2d3b9d17527c01df54 (diff) | |
download | dexon-0x-contracts-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.gz dexon-0x-contracts-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.tar.zst dexon-0x-contracts-61f227e123218ba76a7fdf7fc2ee89171c2bf16c.zip |
feat(instant): Heap middleware and first tracking events
Diffstat (limited to 'packages/instant/src/redux/store.ts')
-rw-r--r-- | packages/instant/src/redux/store.ts | 7 |
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..54dfe58c4 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, devToolsEnhancer } 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))); }, }; |