Watching a model with custom get and setter doesn't work in some cases. #11526
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
need guidance
The approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.
scope: defineModel
Vue version
3.4.35
Link to minimal reproduction
https://play.vuejs.org/#eNp9VE1v2zAM/SusLk6wzEG9nTIn2Ad62ICtw7rbtIPrMKlbRfIkOQ1g5L+Pou3U9rKcbPGRfI8fUi0+lGW8r1AsROpyW5QeHPqqXEld7EpjPdRgcQNH2Fizg4hcoxP0yezK1h7PwyFkit5JLXVutPPg0flrWIYMk02mHE77SDJC0nmjgLjp4HFXqswjnQBSptq/3pk1qgWnXUrBXykG9qS1J2SfU2w67yUSM+EdCdgU2/jRGU1V1yG9FDnlLxTa29IXJFCKBTASsEwp8/yFbd5WOOvs+QPmT2fsj+4QbFJ8t+jQ7lGKE+Yzu0XfwDd33/BA/yeQqqgUeV8Af6AzqgoaG7ePlV6T7J4fq/3MAyr09qe7OXjUrisqCA2eR/aXggYWWvu/0l/kvonfcpzUR+piN+zx2oDK9DZMgNKMVmgGz5nPHwab1FuVXzzM37QSa9wUGr+Giab3xijM9GoSMRzNWJnFP1Vhcd3rO6lcwGSfqQqnsFzBFf8yRMLOQG0xALR44dNTkVxWkUQUQs05BbG028q36xw1eG/PR1hAuRcTjpwBCwrSukxxY3m1bKDYmztvaZqTKafuhyej8EB2MfzSLbuvvDca3ueqyJ+6C0bSr9qbxl4Add3e7CN3MJ03cU2OdbFv3YIPXDdaaafqrrou6sXzLHF4HpiYrvKQODlH/A9zMmQOjRkyD5+G418Cvq1O
Steps to reproduce
See link.
What is expected?
watch of both model test1 and test2 to be called
What is actually happening?
Only the watch off test2 model is called
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: