From b208f71d3c31ca6e82892d1e7acef08ade06baf0 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 9 Jul 2025 09:26:01 -0400 Subject: [PATCH] tweak comment to remove active_reaction reference --- packages/svelte/src/reactivity/map.js | 6 +++--- packages/svelte/src/reactivity/set.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/svelte/src/reactivity/map.js b/packages/svelte/src/reactivity/map.js index fe0b9ef1fa..4fa2dfd7b2 100644 --- a/packages/svelte/src/reactivity/map.js +++ b/packages/svelte/src/reactivity/map.js @@ -81,9 +81,9 @@ export class SvelteMap extends Map { } /** - * If the active_reaction is the same as the reaction that created this SvelteMap, - * we use state so that it will not be a dependency of the reaction. Otherwise we - * use source so it will be. + * If the source is being created inside the same reaction as the SvelteMap instance, + * we use `state` so that it will not be a dependency of the reaction. Otherwise we + * use `source` so it will be. * * @template T * @param {T} value diff --git a/packages/svelte/src/reactivity/set.js b/packages/svelte/src/reactivity/set.js index 5ba951d40a..9e3c330beb 100644 --- a/packages/svelte/src/reactivity/set.js +++ b/packages/svelte/src/reactivity/set.js @@ -77,9 +77,9 @@ export class SvelteSet extends Set { } /** - * If the active_reaction is the same as the reaction that created this SvelteMap, - * we use state so that it will not be a dependency of the reaction. Otherwise we - * use source so it will be. + * If the source is being created inside the same reaction as the SvelteSet instance, + * we use `state` so that it will not be a dependency of the reaction. Otherwise we + * use `source` so it will be. * * @template T * @param {T} value