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:
fetch@index.vue
.fetch@child.vue
./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.