Warm up frequently-used subscriptions (#633)

This commit is contained in:
Jaco Greeff 2019-01-21 16:28:12 +01:00 committed by GitHub
parent 1f15c54309
commit e86c437e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')
);