We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8118efd commit c22ebffCopy full SHA for c22ebff
.changeset/odd-schools-wait.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+chore: untrack keyed validation logic
packages/svelte/src/internal/client/validate.js
@@ -1,3 +1,4 @@
+import { untrack } from './runtime.js';
import { is_array } from './utils.js';
/** regex of all html void element names */
@@ -69,7 +70,7 @@ export function validate_dynamic_element_tag(tag_fn) {
69
70
*/
71
export function validate_each_keys(collection, key_fn) {
72
const keys = new Map();
- const maybe_array = collection();
73
+ const maybe_array = untrack(() => collection());
74
const array = is_array(maybe_array)
75
? maybe_array
76
: maybe_array == null
0 commit comments