Static GitHub Issues

[431] how to use the <keep-alive> in nuxt.js ?

prev: support vue-router alias and redirect
next: When release of branch 0.10.0?

hi, i has two page,

one is timeline, other is feed-detail

i hope the effect

  1. enter website (default timeline page), load data (feeds) from api-server at hook mounted.

  2. scroll some feeds... click one feed and enter feed-detail page.

  3. click back up button of browser and return timeline page. now timeline reload the feeds and remount the page... scroll on top.

i hope the timeline page is not remount on back up.

i try such as:

<keep-alive>
    <nuxt>
</keep-alive>

but it is no effect, i'm inquisitive what the different between <nuxt> and <router-view> of vue-router ?

should me to do ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c374">#c374</a>)</em></sub></div>