Subscribe on changes!

watchers inside of EffectScope are still collected by the current component

avatar
Jul 20th 2021

Version

3.2.0-beta.2

Reproduction link

Playground

Steps to reproduce

  • Click the button
  • change the input -> logs changes
  • Click the button again
  • change the input -> changes are no longer logged

What is expected?

the watcher should not be disposed of when the component is unmounted

What is actually happening?

the watcher is destroyed along the component