Skip to content

This is about props spread operator also known as ...rest, and how can I use this in Vue correctly? #11645

Closed Answered by sadeghbarati
imnash21 asked this question in Help/Questions
Discussion options

You must be logged in to vote

In Vue 3.4 <=
You need to use the propsDestructure option in @vitejs/plugin-vue to destructure the props


In Vue 3.5 >=, the propsDestructure option is enabled by default


Related Discussion

vuejs/rfcs#502

Replies: 1 comment 1 reply

Comment options

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

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