vue 3.4.4 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3471,10 +3471,11 @@ function doWatch(source, cb, {
3471
3471
  scheduler = () => queueJob(job);
3472
3472
  }
3473
3473
  const effect = new ReactiveEffect(getter, NOOP, scheduler);
3474
+ const scope = getCurrentScope();
3474
3475
  const unwatch = () => {
3475
3476
  effect.stop();
3476
- if (instance && instance.scope) {
3477
- remove(instance.scope.effects, effect);
3477
+ if (scope) {
3478
+ remove(scope.effects, effect);
3478
3479
  }
3479
3480
  };
3480
3481
  {
@@ -9489,7 +9490,7 @@ function isMemoSame(cached, memo) {
9489
9490
  return true;
9490
9491
  }
9491
9492
 
9492
- const version = "3.4.4";
9493
+ const version = "3.4.5";
9493
9494
  const warn = warn$1 ;
9494
9495
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9495
9496
  const devtools = devtools$1 ;