-
Notifications
You must be signed in to change notification settings - Fork 246
Content Template Functions Invoked on Server Render Only #426
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
Comments
Please add a reproduction for this |
Here is the content template defined in my
Here is the relevant code in my
Below are steps to reproduce the issue of the the content template function not being called on client side page changes.
|
Thanks for the repro. Which vue-meta version are you using? In v2 I cant reproduce your exact problem. But it seems that in v2 the content template is being execute more than once, so the text part of the content template is listed more then once (eg |
Nuxt version 2.8.1 whose vue-meta dependency is |
@johndugan Yes, a major update will land in Nuxt in the next minor version (v2.9) |
The content template issue I found is fixed in |
I am using a Content Template for my
og:title
content, as the example in the docs is. However, unlike thetitleTemplate
, which is invoked on both server and client SPA renders, Content Templates are only invoked on server renders. In my universal Nuxt application, following hydration, the content template function is not invoked when switching pages. This appears to be a bug.The text was updated successfully, but these errors were encountered: