repl icon indicating copy to clipboard operation
repl copied to clipboard

`computed` returns a data trigger of the reference type that does not match the expectation

Open huangmingfu opened this issue 1 year ago • 0 comments

(bug demo)

It should only perform the callback once initially, but it is also performed when the 'push' subitem is executed

When I run this code in the project, it works as expected, but playground refires every time I push it

Image

The following actions should trigger the callback again:

<button @click="testArr = [{ label: '3', value: '3' }]">修改arr</button>

huangmingfu avatar Jan 23 '25 13:01 huangmingfu