Skip to content

Commit

Permalink
colw/Reduce lag when switching staking tabs. (#2870)
Browse files Browse the repository at this point in the history
* Reduce lag when switching staking tabs.

Keep validator list in memory.

* snapshot

* changelog
  • Loading branch information
colw authored and jbibla committed Aug 12, 2019
1 parent 90ce1af commit 4ada643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/colw_staking-perf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Changed] [#2870](https://github.com/cosmos/lunie/pull/2870) Keep staking tabs in memory even when switching between them @colw
4 changes: 3 additions & 1 deletion src/components/staking/PageStaking.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<TmPage :tabs="tabs" class="staking" data-title="Staking">
<router-view />
<keep-alive>
<router-view />
</keep-alive>
</TmPage>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ exports[`PageStaking has the expected html structure 1`] = `
tabs="[object Object],[object Object],[object Object]"
title=""
>
<router-view-stub />
<keep-alive-stub>
<router-view-stub />
</keep-alive-stub>
</tmpage-stub>
`;

0 comments on commit 4ada643

Please sign in to comment.