Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchers inside of EffectScope are still collected by the current component #4158

Closed
posva opened this issue Jul 20, 2021 · 0 comments
Closed
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working scope: reactivity

Comments

@posva
Copy link
Member

posva commented Jul 20, 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

@posva posva added 🐞 bug Something isn't working scope: reactivity ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Jul 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working scope: reactivity
Projects
None yet
Development

No branches or pull requests

1 participant