Closed
Description
Vue version
3.5.10
Link to minimal reproduction
Steps to reproduce
Click the button.
What is expected?
- Logging for all watchers.
- Re-rendering.
What is actually happening?
Logging stops at pre1
, with later effects not running.
System Info
No response
Any additional comments?
This is very similar to #12045, and I think the underlying cause is the same. The subscriber gets added to two different batches, resetting the next
property, leading to the original batch not running to completion.
The fix for #12045, aa9ef23, solves the problem for subscribers that are effects, but not for computeds.
Running the reproduction above against 3.5.9 does result in re-rendering, but the pre2
watcher doesn't run. Running against 3.5.8 does all seem to work correctly.