@lwc/engine-core 7.1.2 → 7.1.3

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 CHANGED
@@ -5259,16 +5259,7 @@ function s(slotName, data, children, slotset) {
5259
5259
  // to the vnode because the current way the diffing algo works, it will replace the original reference
5260
5260
  // to the host element with a new one. This means the new element will be mounted and immediately unmounted.
5261
5261
  // Creating a copy of the vnode to preserve a reference to the previous host element.
5262
- if (shared.isUndefined(vnode.elm)) {
5263
- // vnode.elm is undefined during initial render.
5264
- // We don't need to clone at this point because it doesn't need to be unmounted.
5265
- vnode.slotAssignment = data.slotAssignment;
5266
- }
5267
- else {
5268
- // Clone when the vnode.elm is defined to ensure we don't lose reference to the previous element.
5269
- // This is specifically for slot forwarding.
5270
- clonedVNode = { ...vnode, slotAssignment: data.slotAssignment };
5271
- }
5262
+ clonedVNode = { ...vnode, slotAssignment: data.slotAssignment };
5272
5263
  }
5273
5264
  // If the slot content is standard type, the content is static, no additional
5274
5265
  // processing needed on the vnode
@@ -8091,5 +8082,5 @@ exports.swapTemplate = swapTemplate;
8091
8082
  exports.track = track;
8092
8083
  exports.unwrap = unwrap;
8093
8084
  exports.wire = wire;
8094
- /** version: 7.1.2 */
8085
+ /** version: 7.1.3 */
8095
8086
  //# sourceMappingURL=index.cjs.js.map