Subscribe on changes!

Broken reactivity for watch option

avatar
Sep 20th 2020

Version

3.0.0

Reproduction link

https://jsfiddle.net/7bahj9su/1/

Steps to reproduce

  1. Watch an array
  2. Push to the array

What is expected?

Watch should trigger after push.

What is actually happening?

Nothing.


It is working in Vue 2: https://jsfiddle.net/7bahj9su/

avatar
Sep 20th 2020

I think this is a duplicate of #2116

avatar
Sep 20th 2020

Duplicate of #2116

avatar
Sep 30th 2020

I think it is different with #2116 . Use { flush: 'post' } in Composition API could solve it. It might be caused by the broken change of 3.0.0-rc.13.