Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 600a7ad commit ffded12Copy full SHA for ffded12
packages/svelte/src/internal/client/dom/elements/attributes.js
@@ -495,12 +495,14 @@ export function attribute_effect(
495
}
496
497
for (let symbol of Object.getOwnPropertySymbols(next)) {
498
- var n = (current[symbol] = next[symbol]);
+ var n = next[symbol];
499
500
if (symbol.description === ATTACHMENT_KEY && (!prev || n !== prev[symbol])) {
501
if (effects[symbol]) destroy_effect(effects[symbol]);
502
effects[symbol] = branch(() => attach(element, () => n));
503
504
+
505
+ current[symbol] = n;
506
507
508
prev = current;
0 commit comments