Skip to content

Commit

Permalink
Remove unnecessary console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Dec 19, 2024
1 parent ebc2694 commit 45bfdfb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/stack-shared/src/utils/caches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,13 @@ class AsyncValueCache<T> {
});
this._unsubscribers.push(unsubscribe);
}
console.log("add", this._subscriptionsCount, new Date().toISOString());

let hasUnsubscribed = false;
return {
unsubscribe: () => {
if (hasUnsubscribed) return;
hasUnsubscribed = true;
storeObj.unsubscribe();
console.log("remove", this._subscriptionsCount - 1, new Date().toISOString());
if (--this._subscriptionsCount === 0) {
for (const unsubscribe of this._unsubscribers) {
unsubscribe();
Expand Down

0 comments on commit 45bfdfb

Please sign in to comment.