From 75b70341336d2f8adf2c12887bcaa588b8d91a59 Mon Sep 17 00:00:00 2001 From: Sigve Kvalsvik Date: Sat, 24 Mar 2018 10:51:11 +0100 Subject: [PATCH] #1388: Set set_subscribe_callback boolean to false --- app/components/Account/AccountPermissionsList.jsx | 2 +- app/routerTransition.js | 2 +- app/stores/BlockchainStore.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Account/AccountPermissionsList.jsx b/app/components/Account/AccountPermissionsList.jsx index 09730d246d..9a2fa73383 100644 --- a/app/components/Account/AccountPermissionsList.jsx +++ b/app/components/Account/AccountPermissionsList.jsx @@ -289,4 +289,4 @@ class AccountPermissionsList extends React.Component { } } -export default BindToChainState(AccountPermissionsList, {keep_updating: true}); +export default BindToChainState(AccountPermissionsList, {autosubscribe: false}); diff --git a/app/routerTransition.js b/app/routerTransition.js index 28dbd03eef..ef4cea416b 100644 --- a/app/routerTransition.js +++ b/app/routerTransition.js @@ -164,7 +164,7 @@ const willTransitionTo = ( return Promise.all([dbPromise, SettingsStore.init()]) .then(() => { let chainStoreResetPromise = chainChanged - ? ChainStore.resetCache() + ? ChainStore.resetCache(false) : Promise.resolve(); return chainStoreResetPromise.then(() => { return Promise.all([ diff --git a/app/stores/BlockchainStore.js b/app/stores/BlockchainStore.js index 0916ad6953..aabfe763be 100644 --- a/app/stores/BlockchainStore.js +++ b/app/stores/BlockchainStore.js @@ -65,7 +65,7 @@ class BlockchainStore { onUpdateRpcConnectionStatus(status) { let prev_status = this.rpc_connection_status; - if (status === "reconnect") ChainStore.resetCache(); + if (status === "reconnect") ChainStore.resetCache(false); else this.rpc_connection_status = status; if (prev_status === null && status === "error") this.no_ws_connection = true;