Skip to content

Commit

Permalink
Do not batch tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord committed Mar 27, 2024
1 parent 3d21888 commit 197e305
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/primitives/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ export class SignaledMap<K, V> extends Map<K, V> {
}
*entries(): IterableIterator<[K, V]> {
for (const entry of super.entries()) {
batch(() => {
track(entry[0], this.keysCache);
track(entry[0], this.valuesCache);
});
track(entry[0], this.keysCache);
track(entry[0], this.valuesCache);
yield entry;
}
track(OBJECT_KEYS, this.keysCache);
Expand All @@ -61,7 +59,6 @@ export class SignaledMap<K, V> extends Map<K, V> {
}

get(key: K): V | undefined {
track(key, this.valuesCache);
return super.get(key);
}

Expand Down

0 comments on commit 197e305

Please sign in to comment.