@vue/runtime-dom 3.5.0-alpha.3 → 3.5.0-alpha.4
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.
- package/dist/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +10 -11
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +10 -11
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-alpha.
|
|
2
|
+
* @vue/runtime-dom v3.5.0-alpha.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3387,6 +3387,7 @@ function defineAsyncComponent(source) {
|
|
|
3387
3387
|
},
|
|
3388
3388
|
setup() {
|
|
3389
3389
|
const instance = currentInstance;
|
|
3390
|
+
markAsyncBoundary(instance);
|
|
3390
3391
|
if (resolvedComp) {
|
|
3391
3392
|
return () => createInnerComp(resolvedComp, instance);
|
|
3392
3393
|
}
|
|
@@ -3408,8 +3409,6 @@ function defineAsyncComponent(source) {
|
|
|
3408
3409
|
error: err
|
|
3409
3410
|
}) : null;
|
|
3410
3411
|
});
|
|
3411
|
-
} else {
|
|
3412
|
-
markAsyncBoundary(instance);
|
|
3413
3412
|
}
|
|
3414
3413
|
const loaded = ref(false);
|
|
3415
3414
|
const error = ref();
|
|
@@ -6810,7 +6809,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6810
6809
|
const componentUpdateFn = () => {
|
|
6811
6810
|
if (!instance.isMounted) {
|
|
6812
6811
|
let vnodeHook;
|
|
6813
|
-
const { el, props } = initialVNode;
|
|
6812
|
+
const { el, props, type } = initialVNode;
|
|
6814
6813
|
const { bm, m, parent } = instance;
|
|
6815
6814
|
const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
|
|
6816
6815
|
toggleRecurse(instance, false);
|
|
@@ -6844,8 +6843,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6844
6843
|
endMeasure(instance, `hydrate`);
|
|
6845
6844
|
}
|
|
6846
6845
|
};
|
|
6847
|
-
if (isAsyncWrapperVNode) {
|
|
6848
|
-
|
|
6846
|
+
if (isAsyncWrapperVNode && !type.__asyncResolved) {
|
|
6847
|
+
type.__asyncLoader().then(
|
|
6849
6848
|
// note: we are moving the render call into an async callback,
|
|
6850
6849
|
// which means it won't track dependencies - but it's ok because
|
|
6851
6850
|
// a server-rendered async wrapper is already in resolved state
|
|
@@ -7957,7 +7956,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7957
7956
|
const modifiers = getModelModifiers(props, name);
|
|
7958
7957
|
const res = customRef((track, trigger) => {
|
|
7959
7958
|
let localValue;
|
|
7960
|
-
let prevSetValue;
|
|
7959
|
+
let prevSetValue = EMPTY_OBJ;
|
|
7961
7960
|
let prevEmittedValue;
|
|
7962
7961
|
watchSyncEffect(() => {
|
|
7963
7962
|
const propValue = props[name];
|
|
@@ -7972,7 +7971,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7972
7971
|
return options.get ? options.get(localValue) : localValue;
|
|
7973
7972
|
},
|
|
7974
7973
|
set(value) {
|
|
7975
|
-
if (!hasChanged(value, localValue)) {
|
|
7974
|
+
if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) {
|
|
7976
7975
|
return;
|
|
7977
7976
|
}
|
|
7978
7977
|
const rawProps = i.vnode.props;
|
|
@@ -7983,7 +7982,7 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
7983
7982
|
}
|
|
7984
7983
|
const emittedValue = options.set ? options.set(value) : value;
|
|
7985
7984
|
i.emit(`update:${name}`, emittedValue);
|
|
7986
|
-
if (value
|
|
7985
|
+
if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) {
|
|
7987
7986
|
trigger();
|
|
7988
7987
|
}
|
|
7989
7988
|
prevSetValue = value;
|
|
@@ -9602,7 +9601,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
9602
9601
|
resetTracking();
|
|
9603
9602
|
reset();
|
|
9604
9603
|
if (isPromise(setupResult)) {
|
|
9605
|
-
markAsyncBoundary(instance);
|
|
9604
|
+
if (!isAsyncWrapper(instance)) markAsyncBoundary(instance);
|
|
9606
9605
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
9607
9606
|
if (isSSR) {
|
|
9608
9607
|
return setupResult.then((resolvedResult) => {
|
|
@@ -10083,7 +10082,7 @@ function isMemoSame(cached, memo) {
|
|
|
10083
10082
|
return true;
|
|
10084
10083
|
}
|
|
10085
10084
|
|
|
10086
|
-
const version = "3.5.0-alpha.
|
|
10085
|
+
const version = "3.5.0-alpha.4";
|
|
10087
10086
|
const warn = warn$1 ;
|
|
10088
10087
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10089
10088
|
const devtools = devtools$1 ;
|