Simplify getting refs of props #2

Open
opened 2022-01-20 03:46:37 +00:00 by thepaperpilot · 0 comments
thepaperpilot commented 2022-01-20 03:46:37 +00:00 (Migrated from github.com)

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

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
thepaperpilot added this to the Profectus project 2023-11-16 16:50:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: profectus/Profectus#2
No description provided.