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 a168ecd commit 65f5970Copy full SHA for 65f5970
packages/svelte/src/internal/client/dom/blocks/branches.js
@@ -114,6 +114,22 @@ export class BranchManager {
114
115
// TODO in the no-defer case, we could skip the offscreen step
116
if (should_defer_append()) {
117
+ for (const [k, effect] of this.#onscreen) {
118
+ if (k === key) {
119
+ batch.skipped_effects.delete(effect);
120
+ } else {
121
+ batch.skipped_effects.add(effect);
122
+ }
123
124
+
125
+ for (const [k, branch] of this.#offscreen) {
126
127
+ batch.skipped_effects.delete(branch.effect);
128
129
+ batch.skipped_effects.add(branch.effect);
130
131
132
133
batch.add_callback(this.#commit);
134
} else {
135
this.#commit();
0 commit comments