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
+30-26Lines changed: 30 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,8 @@ export function set_untracked_writes(value) {
128
128
}
129
129
130
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 */
131
-
letcurrent_version=1;
131
+
letwrite_version=1;
132
+
letread_version=0;
132
133
133
134
// If we are working with a get() chain that has no active container,
134
135
// to prevent memory leaks, we skip adding the reaction.
@@ -168,8 +169,8 @@ export function set_dev_current_component_function(fn) {
168
169
dev_current_component_function=fn;
169
170
}
170
171
171
-
exportfunctionincrement_version(){
172
-
return++current_version;
172
+
exportfunctionincrement_write_version(){
173
+
return++write_version;
173
174
}
174
175
175
176
/** @returns {boolean} */
@@ -226,7 +227,7 @@ export function check_dirtiness(reaction) {
0 commit comments