Confusing props concept #8308
lotestudio
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
My apologies if I didn't understand your concept 100%, but I think the new We don't have to use emit() to update aprop, or use toRefs() to keep the properties being reactive. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here is the "confusing" example... It's working somehow but it isn't clear: click. |
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
-
With vue 3 the concept over props becomes more confusing for me. In my work I usually use 3 different kinds of props:
Sometimes I want to have control of how the prop acts. Like v-model or like a local ref. For example, if I have a component which is placed in a laravel blade file the initial value of a prop is declared from a string and component uses it for initial value of ref. But if the component is in another vue component the prop comes from a ref and I want to act as v-model for that ref.
I know that is absolutely possible with the current state of vue, but i think that the process of this can be simplified and more clear.
Beta Was this translation helpful? Give feedback.
All reactions