mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
docs: add note for bridge users about defineNuxtPlugin
(#2166)
This commit is contained in:
parent
010febd1b3
commit
2904bfaf34
@ -189,6 +189,10 @@ export default defineNuxtPlugin(nuxtApp => {
|
||||
})
|
||||
```
|
||||
|
||||
::alert
|
||||
If you want to use the new Nuxt composables (such as `useNuxtApp` or `useRuntimeConfig`) within your plugins, you will need to use the `defineNuxtPlugin` helper for those plugins.
|
||||
::
|
||||
|
||||
## New `useMeta` (optional)
|
||||
|
||||
Nuxt Bridge provides a new Nuxt 3 meta API that can be accessed with a new `useMeta` composable.
|
||||
|
Loading…
Reference in New Issue
Block a user