Skip to content

Server Components + streaming with Suspense boundaries#2

Merged
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/rsc-streaming
Jul 19, 2026
Merged

Server Components + streaming with Suspense boundaries#2
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/rsc-streaming

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

adds a /streaming route that demonstrates async server components behind their own suspense boundaries, so the shell paints right away and each card streams in as its data settles instead of the whole page blocking on the slowest read. the data comes from a tiny simulated layer built on a request-scoped memoizing loader, basically the react cache() pattern, so two components asking for the same key in one render share a single fetch and a rejection gets cached the same way. tests cover the loader dedup, the fastest-first settle order, and the async components rendered to static markup, plus there's a short writeup on the route about the CLS tradeoff of over-splitting boundaries. kept it to one concern for now.

@ThomasHartDev
ThomasHartDev merged commit 4bf3a2a into main Jul 19, 2026
1 check passed
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