better comment

pull/10880/head
Rich Harris 2 years ago
parent 8eba7a354f
commit 6d921056ae

@ -20,7 +20,7 @@ export function snippet(get_snippet, node, ...args) {
if (snippet_fn === (snippet_fn = get_snippet())) return;
if (snippet_fn) {
// Only rerender when the snippet function itself changes,
// Untrack so we only rerender when the snippet function itself changes,
// not when an eagerly-read prop inside the snippet function changes
var dom = untrack(() => /** @type {SnippetFn} */ (snippet_fn)(node, ...args));
}

Loading…
Cancel
Save