@cabloy/vue-runtime-core 3.5.6 → 3.5.7

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.
@@ -5355,16 +5355,17 @@ function baseCreateRenderer(options, createHydrationFns) {
5355
5355
  instance.scope.on();
5356
5356
  const effect = instance.effect = new reactivity.ReactiveEffect(componentUpdateFn);
5357
5357
  instance.scope.off();
5358
- const update = instance.update = effect.run.bind(effect);
5359
- const job = instance.job = () => {
5360
- if (effect.dirty) {
5358
+ function _patchUpdate(checkDirty) {
5359
+ if (!checkDirty || effect.dirty) {
5361
5360
  const zova = _getValidZova(instance);
5362
5361
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration && !zova.meta.ssr._hydratingInstanceRecord(instance)) {
5363
5362
  return;
5364
5363
  }
5365
5364
  effect.run();
5366
5365
  }
5367
- };
5366
+ }
5367
+ const update = instance.update = () => _patchUpdate(false);
5368
+ const job = instance.job = () => _patchUpdate(true);
5368
5369
  job.i = instance;
5369
5370
  job.id = instance.uid;
5370
5371
  effect.scheduler = () => queueJob(job);
@@ -4093,16 +4093,17 @@ function baseCreateRenderer(options, createHydrationFns) {
4093
4093
  instance.scope.on();
4094
4094
  const effect = instance.effect = new reactivity.ReactiveEffect(componentUpdateFn);
4095
4095
  instance.scope.off();
4096
- const update = instance.update = effect.run.bind(effect);
4097
- const job = instance.job = () => {
4098
- if (effect.dirty) {
4096
+ function _patchUpdate(checkDirty) {
4097
+ if (!checkDirty || effect.dirty) {
4099
4098
  const zova = _getValidZova(instance);
4100
4099
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration && !zova.meta.ssr._hydratingInstanceRecord(instance)) {
4101
4100
  return;
4102
4101
  }
4103
4102
  effect.run();
4104
4103
  }
4105
- };
4104
+ }
4105
+ const update = instance.update = () => _patchUpdate(false);
4106
+ const job = instance.job = () => _patchUpdate(true);
4106
4107
  job.i = instance;
4107
4108
  job.id = instance.uid;
4108
4109
  effect.scheduler = () => queueJob(job);
@@ -5412,16 +5412,17 @@ function baseCreateRenderer(options, createHydrationFns) {
5412
5412
  instance.scope.on();
5413
5413
  const effect = instance.effect = new ReactiveEffect(componentUpdateFn);
5414
5414
  instance.scope.off();
5415
- const update = instance.update = effect.run.bind(effect);
5416
- const job = instance.job = () => {
5417
- if (effect.dirty) {
5415
+ function _patchUpdate(checkDirty) {
5416
+ if (!checkDirty || effect.dirty) {
5418
5417
  const zova = _getValidZova(instance);
5419
5418
  if (zova && zova.meta.ssr.isRuntimeSsrPreHydration && !zova.meta.ssr._hydratingInstanceRecord(instance)) {
5420
5419
  return;
5421
5420
  }
5422
5421
  effect.run();
5423
5422
  }
5424
- };
5423
+ }
5424
+ const update = instance.update = () => _patchUpdate(false);
5425
+ const job = instance.job = () => _patchUpdate(true);
5425
5426
  job.i = instance;
5426
5427
  job.id = instance.uid;
5427
5428
  effect.scheduler = () => queueJob(job);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -47,6 +47,6 @@
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
49
  "@vue/shared": "3.5.6",
50
- "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.5.6"
50
+ "@vue/reactivity": "npm:@cabloy/vue-reactivity@3.5.7"
51
51
  }
52
52
  }