Subscribe on changes!

If ref and shallowref are placed together, the shallowref view will be updated. I don't know whether it is a bug

avatar
Mar 25th 2022

Version

3.2.31

Reproduction link

sfc.vuejs.org/

Steps to reproduce

What is expected?

View unchanged

What is actually happening?

The view has changed

avatar
Mar 25th 2022

it's not a bug.

the change to ref triggers the re-render, the shallow ref change does not.

But during re-render all of the component's template is updated with the latest data.

avatar
Sep 21st 2022

This conclusion can be reflected in the vuejs.org。because some people think shallowref data will not be updated.