perf: reduce network round-trips and re-renders. Closes #20 #31

Merged
l30n merged 3 commits from feat/issue-20 into main 2026-04-14 11:36:46 +02:00
Owner
  • Add join_session and get_deck_counts RPCs; offer_cards now embeds card_types JSON, eliminating second client queries
  • Debounce realtime subscription callbacks (300ms) to batch rapid Postgres change events
  • Apply optimistic UI updates in SessionDraft to avoid redundant loadOfferedCards/loadMyCards fetches
  • Wrap SpriteCard in memo; memoize cardW/cardH; cache available sets module-level
  • Cache user ID in ref on HomeScreen to avoid repeated auth.getUser() calls

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

- Add join_session and get_deck_counts RPCs; offer_cards now embeds card_types JSON, eliminating second client queries - Debounce realtime subscription callbacks (300ms) to batch rapid Postgres change events - Apply optimistic UI updates in SessionDraft to avoid redundant loadOfferedCards/loadMyCards fetches - Wrap SpriteCard in memo; memoize cardW/cardH; cache available sets module-level - Cache user ID in ref on HomeScreen to avoid repeated auth.getUser() calls Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add join_session and get_deck_counts RPCs; offer_cards now embeds card_types JSON, eliminating second client queries
- Debounce realtime subscription callbacks (300ms) to batch rapid Postgres change events
- Apply optimistic UI updates in SessionDraft to avoid redundant loadOfferedCards/loadMyCards fetches
- Wrap SpriteCard in memo; memoize cardW/cardH; cache available sets module-level
- Cache user ID in ref on HomeScreen to avoid repeated auth.getUser() calls

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
l30n merged commit b7fdc1fa0a into main 2026-04-14 11:36:46 +02:00
l30n deleted branch feat/issue-20 2026-04-14 11:36:46 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
l30n/Challengers-Draft!31
No description provided.