Static GitHub Issues

[1423] [spa] Fetch is not called when accessing child page directly

prev: error on import scss files !
next: How to use vanilla JS library with Nuxt?

The fetch method is not called when you access a child page directly.

Reproduction project: https://github.com/cretueusebiu/nuxt-fetch-issue

Start the project and open the console:

  • You should see fetch@index.vue.
  • Now click on the Child button and you'll see fetch@child.vue.
  • While on the /child page, refresh the page and only fetch@child.vue is shown.

Is this the expected behavior ?

From looking at the code this line seems to prevent fetch from being called on the parent component.

nuxt

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