You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/svelte/src/internal/client/runtime.js
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,13 @@ export function set_untracked_writes(value) {
127
127
untracked_writes=value;
128
128
}
129
129
130
-
/** @type {number} Used by sources and deriveds for handling updates to unowned deriveds it starts from 1 to differentiate between a created effect and a run one for tracing */
130
+
/**
131
+
* @type {number} Used by sources and deriveds for handling updates.
132
+
* Version starts from 1 so that unowned deriveds differentiate between a created effect and a run one for tracing
133
+
**/
131
134
letwrite_version=1;
135
+
136
+
/** @type {number} Used to version each read of a source of derived to avoid duplicating depedencies inside a reaction */
132
137
letread_version=0;
133
138
134
139
// If we are working with a get() chain that has no active container,
@@ -227,7 +232,7 @@ export function check_dirtiness(reaction) {
0 commit comments