Static GitHub Issues

[214] Current page component is created again when switching layout

prev: Vue plugin integration
next: Integrating vue-router-sync

When you change to a page with a different layout the current page component is created again. This does not seems to be intentional? Let's say the current page will fetch some data using the created method, the problem is the the fetch will happen again when switching layout.

Example from custom layouts:

layouts

<!--cmty--><!--cmty_prevent_hook--><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/c185">#c185</a>)</em></sub></div>