@lwc/engine-core 6.6.5 → 6.6.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.
- package/dist/index.cjs.js +14 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3332,6 +3332,9 @@ function rehydrateHotTemplate(tpl) {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
function rehydrateHotStyle(style) {
|
|
3334
3334
|
const activeVMs = activeStyles.get(style);
|
|
3335
|
+
if (!activeVMs.size) {
|
|
3336
|
+
return true;
|
|
3337
|
+
}
|
|
3335
3338
|
unrenderStylesheet(style);
|
|
3336
3339
|
for (const vm of activeVMs) {
|
|
3337
3340
|
// if a style definition is swapped, we must reset
|
|
@@ -5201,7 +5204,16 @@ function s(slotName, data, children, slotset) {
|
|
|
5201
5204
|
// to the vnode because the current way the diffing algo works, it will replace the original reference
|
|
5202
5205
|
// to the host element with a new one. This means the new element will be mounted and immediately unmounted.
|
|
5203
5206
|
// Creating a copy of the vnode to preserve a reference to the previous host element.
|
|
5204
|
-
|
|
5207
|
+
if (isUndefined$1(vnode.elm)) {
|
|
5208
|
+
// vnode.elm is undefined during initial render.
|
|
5209
|
+
// We don't need to clone at this point because it doesn't need to be unmounted.
|
|
5210
|
+
vnode.slotAssignment = data.slotAssignment;
|
|
5211
|
+
}
|
|
5212
|
+
else {
|
|
5213
|
+
// Clone when the vnode.elm is defined to ensure we don't lose reference to the previous element.
|
|
5214
|
+
// This is specifically for slot forwarding.
|
|
5215
|
+
clonedVNode = { ...vnode, slotAssignment: data.slotAssignment };
|
|
5216
|
+
}
|
|
5205
5217
|
}
|
|
5206
5218
|
// If the slot content is standard type, the content is static, no additional
|
|
5207
5219
|
// processing needed on the vnode
|
|
@@ -7918,5 +7930,5 @@ function readonly(obj) {
|
|
|
7918
7930
|
}
|
|
7919
7931
|
|
|
7920
7932
|
export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, setHooks, shouldBeFormAssociated, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
|
|
7921
|
-
/** version: 6.6.
|
|
7933
|
+
/** version: 6.6.7 */
|
|
7922
7934
|
//# sourceMappingURL=index.js.map
|