-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Bug] Page head data is not populating when navigating to a new page #4
Comments
Just an update to this I found it has something to do with the
But then no cool live previews :( |
Another update.. Its coming from
Does this look good to you? It works on my project for the live-previews (studio previews) and also fixes the page head population issues (haven't tested this on live yet though). Maybe there are more improvements to be made here? 🤔 |
Hey Rylan, thanks and good catch! Sorry for the inconvenience, that should definitely work and I never noticed somehow 😵💫 I'm working in a new place and since then I had not much time to work with Nuxt unfortunately. I will take a closer look at your suggestion, but it looks good to me so far! In general I would prefer to use |
No worries, just wanted to submit the issue! It actually works fine with an |
Hey @jjjuulliiaann I have used this starter in some my Nuxt/Sanity projects and just today I noticed that in all the sites the head data only populates correctly when 1) navigating to and from a link or 2) refreshing the page.
You can test this out easily by going to the demo, opening the dev tools to inspect the page head data, then navigating to a project. The project head data will not update. It will only update upon re-navigating back to the link or refreshing the page.
This took me up until now (after a year of working with Nuxt/Sanity projects) to notice and so you may have just not seen this before. I'll look into this for a potential fix..
The text was updated successfully, but these errors were encountered: