Variables: adds onTimeRangeUpdated to newVariables (#22821)

* Feature: adds onTimeRangeUpdated to newVariables

* Refactor: removes VariableWithRefresh and unused func

* Refactor: adds console output when something throws as well
This commit is contained in:
Hugo Häggmark
2020-03-17 14:10:30 +01:00
committed by GitHub
parent 7f76e8b684
commit d953511e02
6 changed files with 224 additions and 5 deletions

View File

@@ -55,6 +55,7 @@ export const reduxTester = <State>(args?: ReduxTesterArguments<State>): ReduxTes
middleware: [logActionsMiddleWare, thunk],
preloadedState,
});
setStore(store as any);
return instance;
@@ -67,6 +68,7 @@ export const reduxTester = <State>(args?: ReduxTesterArguments<State>): ReduxTes
if (clearPreviousActions) {
dispatchedActions.length = 0;
}
store.dispatch(action);
return instance;