Skip to content

Commit 8a952ba

Browse files
authored
Apply suggestions from code review
1 parent 3556152 commit 8a952ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export function check_dirtiness(reaction) {
201201
if (is_disconnected) {
202202
derived.f ^= DISCONNECTED;
203203
}
204-
// If the unowned derived is now fully connected to the graph again (it unowned and reconnected, has a parent
204+
// If the unowned derived is now fully connected to the graph again (it's unowned and reconnected, has a parent
205205
// and the parent is not unowned), then we can mark it as connected again, removing the need for the unowned
206206
// flag
207207
if (is_unowned_connected && parent !== null && (parent.f & UNOWNED) === 0) {

packages/svelte/tests/runtime-runes/samples/derived-unowned-12/main.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
count;
99
1010
untrack(() => state.current = count);
11-
return untrack(() => state);
11+
return untrack(() => state);
1212
});
1313
1414
linked.current++;

0 commit comments

Comments
 (0)