Skip to content

Commit c270c76

Browse files
committed
fix timing
1 parent af2224e commit c270c76

File tree

1 file changed

+1
-3
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+1
-3
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ export function boundary(node, props, children) {
169169
offscreen_fragment = null;
170170
}
171171

172-
// TODO this timing is wrong, effects need to ~somehow~ end up
173-
// in the right place
174172
for (const e of effects) {
175173
try {
176174
if (check_dirtiness(e)) {
@@ -217,7 +215,7 @@ export function boundary(node, props, children) {
217215
}
218216

219217
if (input === ADD_EFFECT) {
220-
render_effects.push(payload);
218+
effects.push(payload);
221219
return;
222220
}
223221

0 commit comments

Comments
 (0)