docs: add warning about bridge migration with head (#27575)

This commit is contained in:
garthreckers 2024-06-13 01:44:30 -07:00 committed by GitHub
parent d443a24cff
commit c2f2627b99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,6 +98,10 @@ export default defineNuxtComponent({
</script>
```
::warning
Possible breaking change: `head` receives the nuxt app but cannot access the component instance. If the code in your `head` tries to access the data object through `this` or `this.$data`, you will need to migrate to the `useHead` composable.
::
## Title Template
If you want to use a function (for full control), then this cannot be set in your nuxt.config, and it is recommended instead to set it within your `/layouts` directory.