Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: reuse already attached attachments from spread attributes
  • Loading branch information
Ocean-OS committed May 18, 2025
commit 049b5a09bb91d627eedeb4afb4ca5f85c838f940
5 changes: 5 additions & 0 deletions .changeset/rotten-lizards-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: reuse already attached attachments from spread attributes
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export function set_attributes(element, prev, next, css_hash, skip_warning = fal
}

for (let symbol of Object.getOwnPropertySymbols(next)) {
if (symbol.description === ATTACHMENT_KEY) {
if (symbol.description === ATTACHMENT_KEY && !(key in prev)) {
attach(element, () => next[symbol]);
}
}
Expand Down