withDefaults setting array default values is different from props interface #9262
Unanswered
sschneider-ihre-pvs
asked this question in
Help/Questions
Replies: 1 comment
-
Closure returns to prevent the same reference from being tampered with every time the component is called. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://vuejs.org/api/sfc-script-setup.html#default-props-values-when-using-type-declaration
Why does the withDefaults need a function for setting defaults for arrays and not just an array?
My expectations would have been:
But that is explicitly wrong, although the types of the interface seem to match
Beta Was this translation helpful? Give feedback.
All reactions