Static GitHub Issues

[3267] Keep-alive with nuxt-child only not working

prev: Deploy AWS Error: Nuxt + Vue error load image and font-awesome.css
next: 404 not found, fresh installation

Version

v1.4.0

Reproduction link

https://glitch.com/edit/#!/plausible-shingle?path=pages/ka2/index.vue:8:9

Steps to reproduce

I want some of the pages to have keep-alive ( like 1 or 2). So i tried to use it with nuxt-child. https://glitch.com/edit/#!/plausible-shingle?path=pages/ka2/index.vue:8:9 https://plausible-shingle.glitch.me/ka2

E.g. <nuxt-child keep-alive/> And i see that activated\deactivated got triggered fine for that child page. But the child page still got recreated every time. But if i also set keep-alive for the core <nuxt keep-alive/> it will work as expected initially.

https://glitch.com/edit/#!/plausible-shingle?path=pages/ka/index.vue:8:9 https://plausible-shingle.glitch.me/ka

So it doesnt work with nuxt-child, only with nuxt.

PS same behavior with nuxt-edge

What is expected ?

page in nuxt-child not recreated

What is actually happening?

page in nuxt-child got recreated every time

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