diff --git a/packages/svelte/src/reactivity/map.js b/packages/svelte/src/reactivity/map.js index b1a6dac23abc..d481728cd973 100644 --- a/packages/svelte/src/reactivity/map.js +++ b/packages/svelte/src/reactivity/map.js @@ -1,4 +1,4 @@ -import { make_reactive, NOTIFY_WITH_ALL_PARAMS } from './utils.js'; +import { make_reactive, NOTIFY_WITH_ALL_REGISTERED_PARAMS } from './utils.js'; export const ReactiveMap = make_reactive(Map, { write_properties: ['clear', 'delete', 'set'], @@ -18,7 +18,7 @@ export const ReactiveMap = make_reactive(Map, { if (value.size === 0) { return false; } - notify_read_properties(['get', 'keys', 'has'], NOTIFY_WITH_ALL_PARAMS); + notify_read_properties(['get', 'keys', 'has'], NOTIFY_WITH_ALL_REGISTERED_PARAMS); return true; }, delete: (notify_read_properties, value, property, ...params) => { diff --git a/packages/svelte/src/reactivity/set.js b/packages/svelte/src/reactivity/set.js index e7e69b4a1bbc..84c81fad4860 100644 --- a/packages/svelte/src/reactivity/set.js +++ b/packages/svelte/src/reactivity/set.js @@ -1,4 +1,4 @@ -import { make_reactive, NOTIFY_WITH_ALL_PARAMS } from './utils.js'; +import { make_reactive, NOTIFY_WITH_ALL_REGISTERED_PARAMS } from './utils.js'; export const ReactiveSet = make_reactive(Set, { write_properties: ['add', 'clear', 'delete'], @@ -15,7 +15,7 @@ export const ReactiveSet = make_reactive(Set, { if (value.size == 0) { return false; } - notify_read_properties(['has'], NOTIFY_WITH_ALL_PARAMS); + notify_read_properties(['has'], NOTIFY_WITH_ALL_REGISTERED_PARAMS); return true; }, delete: (notify_read_properties, value, property, ...params) => { diff --git a/packages/svelte/src/reactivity/utils.js b/packages/svelte/src/reactivity/utils.js index e88783556ff7..237695be095f 100644 --- a/packages/svelte/src/reactivity/utils.js +++ b/packages/svelte/src/reactivity/utils.js @@ -2,7 +2,7 @@ import { DEV } from 'esm-env'; import { source, set } from '../internal/client/reactivity/sources.js'; import { get } from '../internal/client/runtime.js'; -export const NOTIFY_WITH_ALL_PARAMS = Symbol(); +export const NOTIFY_WITH_ALL_REGISTERED_PARAMS = Symbol(); export const INTERNAL_OBJECT = Symbol(); /** @@ -253,7 +253,7 @@ function notify_read_properties( `when trying to notify reactions got a read method that wasn't defined in options: ${name.toString()}` ); } - if (params.length == 1 && params[0] == NOTIFY_WITH_ALL_PARAMS) { + if (params.length == 1 && params[0] == NOTIFY_WITH_ALL_REGISTERED_PARAMS) { read_methods_signals.get(name)?.forEach((sig) => { increment_signal(initial_version_signal_v, version_signal, sig); });