@cabloy/vue-runtime-core 3.5.6 → 3.5.8

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.
@@ -2321,7 +2321,7 @@ function defineAsyncComponent(source) {
2321
2321
  pendingRequest = null;
2322
2322
  return load();
2323
2323
  };
2324
- const load = () => {
2324
+ const load = (attrs) => {
2325
2325
  let thisRequest;
2326
2326
  return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
2327
2327
  err = err instanceof Error ? err : new Error(String(err));
@@ -2369,7 +2369,7 @@ function defineAsyncComponent(source) {
2369
2369
  if (resolvedComp) {
2370
2370
  doHydrate();
2371
2371
  } else {
2372
- load().then(() => !instance.isUnmounted && doHydrate());
2372
+ load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
2373
2373
  }
2374
2374
  },
2375
2375
  get __asyncResolved() {
@@ -2391,7 +2391,7 @@ function defineAsyncComponent(source) {
2391
2391
  );
2392
2392
  };
2393
2393
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
2394
- return load().then((comp) => {
2394
+ return load(instance.attrs).then((comp) => {
2395
2395
  return () => createInnerComp(comp, instance);
2396
2396
  }).catch((err) => {
2397
2397
  onError(err);
@@ -2419,7 +2419,7 @@ function defineAsyncComponent(source) {
2419
2419
  }
2420
2420
  }, timeout);
2421
2421
  }
2422
- load().then(() => {
2422
+ load(instance.attrs).then(() => {
2423
2423
  loaded.value = true;
2424
2424
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2425
2425
  instance.parent.update();
@@ -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);
@@ -1701,7 +1701,7 @@ function defineAsyncComponent(source) {
1701
1701
  pendingRequest = null;
1702
1702
  return load();
1703
1703
  };
1704
- const load = () => {
1704
+ const load = (attrs) => {
1705
1705
  let thisRequest;
1706
1706
  return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
1707
1707
  err = err instanceof Error ? err : new Error(String(err));
@@ -1741,7 +1741,7 @@ function defineAsyncComponent(source) {
1741
1741
  if (resolvedComp) {
1742
1742
  doHydrate();
1743
1743
  } else {
1744
- load().then(() => !instance.isUnmounted && doHydrate());
1744
+ load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
1745
1745
  }
1746
1746
  },
1747
1747
  get __asyncResolved() {
@@ -1763,7 +1763,7 @@ function defineAsyncComponent(source) {
1763
1763
  );
1764
1764
  };
1765
1765
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
1766
- return load().then((comp) => {
1766
+ return load(instance.attrs).then((comp) => {
1767
1767
  return () => createInnerComp(comp, instance);
1768
1768
  }).catch((err) => {
1769
1769
  onError(err);
@@ -1791,7 +1791,7 @@ function defineAsyncComponent(source) {
1791
1791
  }
1792
1792
  }, timeout);
1793
1793
  }
1794
- load().then(() => {
1794
+ load(instance.attrs).then(() => {
1795
1795
  loaded.value = true;
1796
1796
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
1797
1797
  instance.parent.update();
@@ -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);
@@ -2336,7 +2336,7 @@ function defineAsyncComponent(source) {
2336
2336
  pendingRequest = null;
2337
2337
  return load();
2338
2338
  };
2339
- const load = () => {
2339
+ const load = (attrs) => {
2340
2340
  let thisRequest;
2341
2341
  return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {
2342
2342
  err = err instanceof Error ? err : new Error(String(err));
@@ -2384,7 +2384,7 @@ function defineAsyncComponent(source) {
2384
2384
  if (resolvedComp) {
2385
2385
  doHydrate();
2386
2386
  } else {
2387
- load().then(() => !instance.isUnmounted && doHydrate());
2387
+ load(instance.attrs).then(() => !instance.isUnmounted && doHydrate());
2388
2388
  }
2389
2389
  },
2390
2390
  get __asyncResolved() {
@@ -2406,7 +2406,7 @@ function defineAsyncComponent(source) {
2406
2406
  );
2407
2407
  };
2408
2408
  if (suspensible && instance.suspense || isInSSRComponentSetup) {
2409
- return load().then((comp) => {
2409
+ return load(instance.attrs).then((comp) => {
2410
2410
  return () => createInnerComp(comp, instance);
2411
2411
  }).catch((err) => {
2412
2412
  onError(err);
@@ -2434,7 +2434,7 @@ function defineAsyncComponent(source) {
2434
2434
  }
2435
2435
  }, timeout);
2436
2436
  }
2437
- load().then(() => {
2437
+ load(instance.attrs).then(() => {
2438
2438
  loaded.value = true;
2439
2439
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2440
2440
  instance.parent.update();
@@ -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.8",
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.8"
51
51
  }
52
52
  }