Skip to content

Commit

Permalink
Update src/guide/essentials/template-refs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaTepluhina authored Dec 9, 2024
1 parent 7de8b57 commit 24b041f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/template-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ defineExpose({

When a parent gets an instance of this component via template refs, the retrieved instance will be of the shape `{ a: number, b: number }` (refs are automatically unwrapped just like on normal instances).

Note that defineExpose must be called before any await operation. Otherwise, properties and methods exposed after the await operation will not be accessible. ([Related Discussion](https://github.com/vuejs/core/issues/4930))
Note that defineExpose must be called before any await operation. Otherwise, properties and methods exposed after the await operation will not be accessible.

See also: [Typing Component Template Refs](/guide/typescript/composition-api#typing-component-template-refs) <sup class="vt-badge ts" />

Expand Down

0 comments on commit 24b041f

Please # to comment.