An interesting question about setup syntax sugar
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
When the ref object r changes, the component regenerates the virtual dom for update. Why is c of type number updated, but objects rmb and data are not updated, but data.name.city is updated. 当ref对象r改变时,组件重新生成虚拟dom进行更新,为什么number类型的c更新了,而对象rmb和data没有更新,但是data.name.city却更新了呢.
And if you put the c and data objects of type number into one element, the data will be updated again! 如果把 number类型的c和data对象放到一个元素中,那么data又会更新了
What is expected?
I don't understand,how is sugar designed for this part
What is actually happening?
always
System Info
No response
Any additional comments?
No response