From 8420c68f51a22bcf0ababa0cbbc1e2134636dbe4 Mon Sep 17 00:00:00 2001 From: Jon Kristensen Date: Fri, 17 Feb 2023 21:39:27 +0100 Subject: [PATCH 1/2] Clarify Composition API FAQ question (#2233) --- src/guide/extras/composition-api-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/extras/composition-api-faq.md b/src/guide/extras/composition-api-faq.md index 898e8e2876..71ddbc59c1 100644 --- a/src/guide/extras/composition-api-faq.md +++ b/src/guide/extras/composition-api-faq.md @@ -110,7 +110,7 @@ Yes in terms of stateful logic. When using Composition API, there are only a few If you intend to exclusively use Composition API (along with the options listed above), you can shave a few kbs off your production bundle via a [compile-time flag](https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags) that drops Options API related code from Vue. Note this also affects Vue components in your dependencies. -### Can I use both APIs together? {#can-i-use-both-apis-together} +### Can I use both APIs together in the same component? {#can-i-use-both-apis-together-in-the-same-component} Yes. You can use Composition API via the [`setup()`](/api/composition-api-setup.html) option in an Options API component. From 5cbc3d03fee1986e7b0e5553b2d3df370b6ef8c9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 12 Jun 2023 11:57:36 +0800 Subject: [PATCH 2/2] Update composition-api-faq.md --- src/guide/extras/composition-api-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/extras/composition-api-faq.md b/src/guide/extras/composition-api-faq.md index 71ddbc59c1..9f382cbdd1 100644 --- a/src/guide/extras/composition-api-faq.md +++ b/src/guide/extras/composition-api-faq.md @@ -110,7 +110,7 @@ Yes in terms of stateful logic. When using Composition API, there are only a few If you intend to exclusively use Composition API (along with the options listed above), you can shave a few kbs off your production bundle via a [compile-time flag](https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags) that drops Options API related code from Vue. Note this also affects Vue components in your dependencies. -### Can I use both APIs together in the same component? {#can-i-use-both-apis-together-in-the-same-component} +### Can I use both APIs in the same component? {#can-i-use-both-apis-in-the-same-component} Yes. You can use Composition API via the [`setup()`](/api/composition-api-setup.html) option in an Options API component.