Skip to content

Commit

Permalink
fix: no-update-body on native elements
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Feb 28, 2025
1 parent 9c93c4f commit 6c24a30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-mirrors-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"marko": patch
---

Fix issue with no-update-body on native elements without a key not always being preserved during hydrate.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function render(input, out) {

var isPreserved =
shouldPreserve &&
((isComponent && isHydrate) ||
((isHydrate && (isComponent || input.b)) ||
referenceComponent.___keyedElements[checkKey]);

if (isComponent) {
Expand Down

0 comments on commit 6c24a30

Please sign in to comment.