Modification of the shallowRef (number) value of another shallowRef (object) will affect the rendering of the object type #10364
-
When I declare two shallowRef shallow responder objects. One is The first step is to change p But when I executed please help me ,tell me why??? It's wrong with my code or this is an bug? preview my code |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's normal behaviour. When one reactive dependency of our template changes, the whole template is being re-evaluated and is being updated with the current values of any data that is being used in the template. This is how dom updates in libraries with virtual DOM work. |
Beta Was this translation helpful? Give feedback.
It's normal behaviour. When one reactive dependency of our template changes, the whole template is being re-evaluated and is being updated with the current values of any data that is being used in the template.
This is how dom updates in libraries with virtual DOM work.