Skip to content

Batch A3: cache refresh lock + error boundary - #24

Merged
DaleDamon merged 1 commit into
mainfrom
batch-a3-cache-lock-boundary
Dec 2, 2026
Merged

DaleDamon merged 1 commit into
mainfrom
batch-a3-cache-lock-boundary

Conversation

@DaleDamon

Copy link
Copy Markdown
Owner

Batch A items 3 + 4 (approved 2026-12-02), completing Batch A.

Cache refresh lock. getWineCache now memoizes the in-flight refresh: concurrent requests on an expired cache share one full-catalog Firestore read instead of each launching their own (cold-start stampede). This matters more since H6 put /pairings/find on the same cache.

Error boundary. A root ErrorBoundary wraps the app: a render exception now shows a Something went wrong screen with a reload button instead of a whitescreen. Errors are logged to the console with component info.

@DaleDamon
DaleDamon merged commit bb1aeab into main Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant