From 71d88606527d4b7b91d9d01755ed37f8d05bdbe5 Mon Sep 17 00:00:00 2001 From: Mohammad Toosi Date: Sat, 26 Mar 2022 01:59:51 +0430 Subject: [PATCH] Update composition-api-setup.md add `toRef` to list of imported properties from `vue` package. --- src/api/composition-api-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/composition-api-setup.md b/src/api/composition-api-setup.md index 3f1e6a5f42..e59cd4ca82 100644 --- a/src/api/composition-api-setup.md +++ b/src/api/composition-api-setup.md @@ -64,7 +64,7 @@ Note that if you destructure the `props` object, the destructured variables will If you really need to destructure the props, or need to pass a prop into an external function while retaining reactivity, you can do so with the [toRefs()](./reactivity-utilities.html#torefs) and [toRef()](/api/reactivity-utilities.html#toref) utility APIs: ```js -import { toRefs } from 'vue' +import { toRefs, toRef } from 'vue' export default { setup(props) {