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