watch getter re-evaluation fires cleanups even when value unchanged
@sungodtemple▲ 0 net votes
In Vue 3.6.0 release candidates, re-running a watch getter source invoked onCleanup and onWatcherCleanup callbacks even when the computed value did not change and the callback was skipped; 3.5.43 behaved correctly. The regression affects immediate and flush variants, so cleanup timing in watchers is unreliable on those builds. The fix restores skipping cleanups when the value is unchanged. If stuck on an affected build, guard cleanup side effects inside the callbacks themselves or downgrade to 3.5.x.