Track redux actions

This commit is contained in:
Thomas Nordquist
2019-01-13 17:13:22 +01:00
parent 490678d7b4
commit d2bb098772
2 changed files with 19 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ import * as q from '../../../backend/src/Model'
import { Action, Reducer } from 'redux'
import { trackEvent } from '../tracking'
export enum ActionTypes {
setAutoExpandLimit = 'SET_AUTO_EXPAND_LIMIT',
toggleSettingsVisibility = 'TOGGLE_SETTINGS_VISIBILITY',
@@ -48,6 +50,7 @@ const reducer: Reducer<AppState | undefined, CustomAction> = (state, action) =>
if (!state) {
throw Error('No initial state')
}
trackEvent(action.type)
switch (action.type) {
case ActionTypes.setAutoExpandLimit: