Simplify getting refs of props #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: profectus/Profectus#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, it is not possible to wrap a defineProps macro inside a toRefs function, even though that is the best way to handle props in composition API. Currently as a workaround we create a _props variable and then write
const props = toRefs(_props)
, which is a workaround. Simplify these to get rid of the _props middleman once vue properly supports this use case.Related issue: https://github.com/vuejs/core/issues/5104