Now that the sync modifier is back, make sense to recover the sync validator as well.
If an component relies on the sync modifier should be possible to state it on the prop declaration as:
props: {
syncedProp: {
sync: true
}
}
IMHO, we should not introduce sync prop validation in v2 since sync modifier in v2 is just a syntax suger of corresponding v-on handler. If a child component can have the sync validation, that would mean the child can control the state update strategy of the parent.
You may be right. Ok.
Most helpful comment
IMHO, we should not introduce
syncprop validation in v2 sincesyncmodifier in v2 is just a syntax suger of correspondingv-onhandler. If a child component can have thesyncvalidation, that would mean the child can control the state update strategy of the parent.