pull/2/merge
Szymon Lesisz 6 years ago
parent 12a81766a9
commit 56bf3a5bc4

@ -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();
}
}
// Application life cycle starts in ./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) {

Loading…
Cancel
Save