Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Reload UI on network switch #4864

Merged
merged 2 commits into from
Mar 13, 2017
Merged

Reload UI on network switch #4864

merged 2 commits into from
Mar 13, 2017

Conversation

ngotchac
Copy link
Contributor

Fixes #4814

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Mar 10, 2017
@jacogr
Copy link
Contributor

jacogr commented Mar 11, 2017

Better than what we have. We however need to actually just reload the affected accounts - refresh accounts, balances, contracts, etc. (Clear cache, start over.) For network itself we really don't need to reload the UI.

@jacogr jacogr added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 11, 2017
@@ -18,6 +18,10 @@ import BalancesProvider from './balances';
import { showSnackbar } from './snackbarActions';
import { DEFAULT_NETCHAIN } from './statusReducer';

// Reload the page on network switch after
// 5 seconds
const RELOAD_TIMEOUT = 5000;
Copy link
Contributor

@gavofyork gavofyork Mar 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ngotchac any reason this is not instant? just looks to me like 5 of incorrectness.

@gavofyork gavofyork added A0-pleasereview 🤓 Pull request needs code review. and removed A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. labels Mar 13, 2017
@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 13, 2017
@jacogr
Copy link
Contributor

jacogr commented Mar 13, 2017

Tested.

@jacogr jacogr merged commit 8a37f95 into master Mar 13, 2017
@jacogr jacogr deleted the ng-reload-ui branch March 13, 2017 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants