New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[spa] Fetch is not called when accessing child page directly #1423
Comments
@cretueusebiu What exactly are you expecting? When hard reload child page call I'm starting to use Nuxt recently, but for me, this is the expected behavior since index (home) and child are 2 different pages, with 2 different codes. I normally use a middleware to make things globally. EG something need to happen in every page, like verify if the user is authenticated... |
@gtso86 Yes. |
@cretueusebiu got it... When I disabled the |
It seems to be a bug indeed, it should not call any I will take a look at it. |
I just tried and
But with
Woking on it :) |
It's fixed with fed644d Will be available in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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 onlyfetch@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.
The text was updated successfully, but these errors were encountered: