Repository navigation
Design: data fetching, caching and revalidation - #194
Conversation
Instant UI from a persisted client cache, a bounded webhook change feed for targeted revalidation, and an optional ETag server cache with built-in expiry. Follows the D1-full incident fixed in #193. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Proposal doc only, no code:
docs/data-fetching.md.Goal: Linear-like instant UI (no skeletons for anything seen before, background revalidation) without a sync engine, which does not fit a GitHub client (no write authority, per-user permissioned data, rate-limited reads).
pendingMs~300 ms; filter cookie read on the client; list→detail seeding; optimistic auth from the persisted viewer./api/changesendpoint and invalidates only affected queries; fixed per-query polling goes away.waitUntil, no invalidation tables.Includes a measured list of where skeletons come from today, and a phased plan. See the Open questions section for the decisions needed.
🤖 Generated with Claude Code
Summary by CodeRabbit