From 2904bfaf3414b52acfabc632f378f606244479a6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 29 Nov 2021 10:50:49 +0000 Subject: [PATCH] docs: add note for bridge users about `defineNuxtPlugin` (#2166) --- docs/content/1.getting-started/3.bridge.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/1.getting-started/3.bridge.md b/docs/content/1.getting-started/3.bridge.md index 4eade24ad0..116070d346 100644 --- a/docs/content/1.getting-started/3.bridge.md +++ b/docs/content/1.getting-started/3.bridge.md @@ -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.