Home

Issue: 1423

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

[issue link]

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

This bug report is available on Nuxt.js community (#c1265)