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

Watch handler is not immediately called when setup with multiple sources all having an undefined value #5032

Closed
Stnaire opened this issue Dec 3, 2021 · 0 comments · Fixed by #5033
Labels
🐞 bug Something isn't working scope: reactivity

Comments

@Stnaire
Copy link

Stnaire commented Dec 3, 2021

Version

3.2.23

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Create a watcher using the composition api that takes an array of refs as source, all resolving to an undefined value.

What is expected?

The handler should be called immediately no matter the value of the properties being watched.

What is actually happening?

The handler is only called if at least one of the values is not undefined.

@posva posva added 🐞 bug Something isn't working scope: reactivity has workaround A workaround has been found to avoid the problem and removed has workaround A workaround has been found to avoid the problem labels Dec 3, 2021
LinusBorg added a commit that referenced this issue Oct 20, 2022
chrislone pushed a commit to chrislone/core that referenced this issue Feb 4, 2023
zhangzhonghe pushed a commit to zhangzhonghe/core that referenced this issue Apr 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: reactivity
Projects
None yet
2 participants