Skip to content

Commit 1872ea2

Browse files
committed
better fix
1 parent 0eafed1 commit 1872ea2

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ export function each(node, flags, get_collection, get_key, render_fn, fallback_f
229229
// When we mount the each block for the first time, the collection won't be
230230
// connected to this effect as the effect hasn't finished running yet and its deps
231231
// won't be assigned. However, it's possible that when reconciling the each block
232-
// that a mutation occured and it's made the collection MAYBE_DIRTY, so reading the
233-
// collection again can provide consistency to the reactive grpah again
232+
// that a mutation occurred and it's made the collection MAYBE_DIRTY, so reading the
233+
// collection again can provide consistency to the reactive graph again as the deriveds
234+
// will now be `CLEAN`.
234235
get_collection();
235236
});
236237

0 commit comments

Comments
 (0)