From 56bf3a5bc4d2decb5cf4aecd5b28de7a129562ac Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 18 May 2018 19:46:35 +0200 Subject: [PATCH] comments --- src/js/index.js | 9 ++++----- src/js/services/LocalStorageService.js | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/index.js b/src/js/index.js index deb1d488..2c624e4a 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -17,10 +17,9 @@ window.onbeforeunload = () => { store.dispatch( onBeforeUnload() ); } -// workaround for web3 -// yarn add web3@^0.19.0 -//if (module && module.hot) -if (typeof module !== undefined && module.hasOwnProperty('hot')) { +if (typeof module !== undefined && module.hasOwnProperty('hot')) { // $FlowIssue module.hot.accept(); -} \ No newline at end of file +} + +// Application life cycle starts in ./services/LocalStorageService.js \ No newline at end of file diff --git a/src/js/services/LocalStorageService.js b/src/js/services/LocalStorageService.js index 8254a015..96d82f06 100644 --- a/src/js/services/LocalStorageService.js +++ b/src/js/services/LocalStorageService.js @@ -88,6 +88,7 @@ const save = (dispatch: Dispatch, getState: GetState): void => { const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => { + // Application live cycle starts here if (action.type === LOCATION_CHANGE) { const { location } = api.getState().router; if (!location) {