Skip to content

Commit

Permalink
renamed NOTIFY_WITH_ALL_PARAMS to NOTIFY_WITH_ALL_REGISTERED_PARAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
godzylinux committed May 23, 2024
1 parent 70b9619 commit a9867c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/src/reactivity/map.js
Original file line number Diff line number Diff line change
@@ -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'],
Expand All @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/src/reactivity/set.js
Original file line number Diff line number Diff line change
@@ -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'],
Expand All @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/src/reactivity/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/**
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit a9867c2

Please sign in to comment.