diff --git a/docs/content/1.getting-started/4.bridge-composition-api.md b/docs/content/1.getting-started/4.bridge-composition-api.md index ee6756e71f..72f4c374d0 100644 --- a/docs/content/1.getting-started/4.bridge-composition-api.md +++ b/docs/content/1.getting-started/4.bridge-composition-api.md @@ -35,11 +35,11 @@ Because some composables have been removed and don't yet have a replacement, thi * `useStatic` has been removed. There is no current replacement. Feel free to raise a discussion if you have a use case for this. * `reqRef` and `reqSsrRef`, which were deprecated, have now been removed entirely. Follow the instructions below regarding [ssrRef](#ssrref-and-shallowssrref) to replace this. -2. Remove any explicit imports of the basic Vue Composition API composables, or move them to import from `#app` or `vue`. +2. Remove any explicit imports of the basic Vue Composition API composables, or move them to import from `#imports` or `vue`. ```diff - import { ref, useContext } from '@nuxtjs/composition-api` - + import { ref } from '#app' + + import { ref } from '#imports' ``` 3. For each other composable you are using from `@nuxtjs/composition-api`, follow the steps below. @@ -129,7 +129,7 @@ The only key difference is that `useRoute` no longer returns a computed property ```diff - import { useRouter, useRoute } from '@nuxtjs/composition-api' -+ import { useRouter, useRoute } from '#app' ++ import { useRouter, useRoute } from '#imports' const router = useRouter() const route = useRoute()