From e86c437e91cafa11df57fdcb3ef3fe1177846655 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 21 Jan 2019 16:28:12 +0100 Subject: [PATCH] Warm up frequently-used subscriptions (#633) --- packages/apps/src/Content/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/apps/src/Content/index.tsx b/packages/apps/src/Content/index.tsx index f5f18b607e..cfb8bbc5f6 100644 --- a/packages/apps/src/Content/index.tsx +++ b/packages/apps/src/Content/index.tsx @@ -71,5 +71,9 @@ export default withMulti( // React-router needs to be first, otherwise we have blocked updates withRouter, translate, - withCall('query.session.validators') + // these queries are used in a number of places, warm them up as to avoid + // constant un/resubscriptions on these + withCall('query.session.validators'), + withCall('derive.accounts.indexes'), + withCall('derive.balances.fees') );