Skip to content

Commit ff300d5

Browse files
committed
add comment
1 parent f275aa3 commit ff300d5

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export function await_block(node, get_input, pending_fn, then_fn, catch_fn) {
7272
restore();
7373

7474
if (hydrating) {
75-
// we want to restore everything _except_ this
75+
// `restore()` could set `hydrating` to `true`, which we very much
76+
// don't want — we want to restore everything _except_ this
7677
set_hydrating(false);
7778
}
7879

0 commit comments

Comments
 (0)