You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem with SSR and dynamic meta data loading. For example I have awaiting function getTitle() and need to set page title after request complete. In console log title value in reactive state is correct, but page title is not - there is still old the value.
After some additional investigation, it seems that maybe watchEffect is not the best solution for setting values on the server, as even with the additional flush option set to sync, they seem to only trigger once.
I'm not sure what alternative solution there might be... perhaps useHead accepting an async function or returning a method that allows for forced updating of the headTags?
I have problem with SSR and dynamic meta data loading. For example I have awaiting function
getTitle()
and need to set page title after request complete. In console log title value in reactive state is correct, but page title is not - there is still old the value.Here is my code:
How can I set dynamic meta data? Thank you for your time.
The text was updated successfully, but these errors were encountered: