File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/svelte/src/reactivity Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ export const ReactiveMap = make_reactive(Map, {
20
20
}
21
21
22
22
options . get_registered_params ( 'has' ) ?. forEach ( ( value , param ) => {
23
+ // because we don't want to notify `has` for items that are currently not in the map
23
24
if ( ! options . value . has ( param ) ) {
24
25
return ;
25
26
}
26
27
options . notify_read_properties ( [ 'has' ] , param ) ;
27
28
} ) ;
28
29
29
30
options . get_registered_params ( 'get' ) ?. forEach ( ( value , param ) => {
31
+ // because we don't want to notify `get` for items that are currently not in the map
30
32
if ( ! options . value . has ( param ) ) {
31
33
return ;
32
34
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export const ReactiveSet = make_reactive(Set, {
16
16
return false ;
17
17
}
18
18
options . get_registered_params ( 'has' ) ?. forEach ( ( value , param ) => {
19
+ // because we don't want to notify `has` for items that are currently not in the set
19
20
if ( ! options . value . has ( param ) ) {
20
21
return ;
21
22
}
You can’t perform that action at this time.
0 commit comments