Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stash): clean up mutations, emit updates as a list #3376

Merged
merged 18 commits into from
Jan 6, 2025
Prev Previous commit
Next Next commit
fix query subscriber updates
  • Loading branch information
alvrs committed Jan 3, 2025
commit 799ba481fee103d14abd8f9f2306faac19f79212
6 changes: 3 additions & 3 deletions packages/stash/src/actions/subscribeQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ export function subscribeQuery<query extends Query>({
updates.push({ ...update, type: "enter" });
}
}

// Notify subscribers
subscribers.forEach((subscriber) => subscriber(updates));
}

// Notify subscribers
subscribers.forEach((subscriber) => subscriber(updates));
};

// Subscribe to each table's update stream and return the unsubscribers
Expand Down