Subscribe on changes!

Expose if v-model is set (even with undefined value)

avatar
Aug 12th 2022

What problem does this feature solve?

I have a component which gets data from a "provide" resource. Optionally I want to be able to override this via v-model. But if the starting value of such an v-model is undefined, I am not able to detect whether a "v-model" was set or not.

What does the proposed API look like?

Either making such v-model visible in setup's attrs, or extending the props syntax to something like: { type: String, required: false, default: 'NOT_SET', allowExplicitUndefined: true, }