Subscribe on changes!

For loop with watchEffect + Watch Using the watch callback is lost

avatar
Mar 11th 2022

Version

3.2.31

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Open the console for 3 seconds to see the print

What is expected?

watchEffect a watchEffect b watchEffect c watch a watch b watch c

What is actually happening?

watchEffect a watchEffect b watchEffect c watch c

avatar
Mar 11th 2022

That's expected. The watchEffects run sychonously one after the other, and only then, on the next Tick, will the watch callback be executed.