Skip to content

Should references inside the object passed to defineExpose be unwrapped? #11042

Closed Answered by LinusBorg
denvifer asked this question in Help/Questions
Discussion options

You must be logged in to vote

https://vuejs.org/api/sfc-script-setup.html#defineexpose

The docs clearly state that refs will be unwrapped:

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).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@denvifer
Comment options

Answer selected by denvifer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants