Skip to content

Commit

Permalink
rename MapSet to MapArray
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioCoser committed Apr 5, 2024
1 parent cb9808e commit 14b13d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export class MapSet<K, V> {
export class MapArray<K, V> {
private map = new Map<K, V[]>();

addTo(key: K, newValue: V) {
Expand Down
6 changes: 3 additions & 3 deletions src/reactivity/utils/Subscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MapSet } from "./MapSet";
import { MapArray } from "./MapArray";
import { Subscriber, _Signal } from "../types";

export class Subscriptions {
private currentSubscriber: Subscriber | null = null;
private ancestors = new MapSet<_Signal<any>, _Signal<any>>();
private subscriptions = new MapSet<_Signal<any>, Subscriber>();
private ancestors = new MapArray<_Signal<any>, _Signal<any>>();
private subscriptions = new MapArray<_Signal<any>, Subscriber>();

run(subscriber: Subscriber, fn: () => void): void {
this.currentSubscriber = subscriber;
Expand Down

0 comments on commit 14b13d7

Please sign in to comment.