Skip to content

refactor: remove vestigial appRscStream handling from processRscComponents#166

Open
uhyo wants to merge 1 commit into
masterfrom
claude/issue-148-dywekh
Open

refactor: remove vestigial appRscStream handling from processRscComponents#166
uhyo wants to merge 1 commit into
masterfrom
claude/issue-148-dywekh

Conversation

@uhyo

@uhyo uhyo commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Closes #148

Summary

processRscComponents accepted an appRscStream parameter — draining it and applying the ID mapping to produce appRscContent — but its only caller, buildApp, passed a dummy empty stream and ignored the returned content. Per-entry RSC payload replacement actually happens in buildSingleEntry via replaceIdsInContent; the parameter and return field were leftovers from the single-entry design.

Changes

  • rscProcessor.ts: drop the appRscStream parameter and the appRscContent return field; processRscComponents now returns only components and idMapping. The now-unused drainStream import is removed and step comments renumbered.
  • buildApp.ts: delete the dummy-stream plumbing.
  • rscProcessor.test.ts: remove the streamOf helper and assert on idMapping instead of appRscContent.

Testing

  • pnpm typecheck, pnpm lint, pnpm format:check — clean
  • pnpm test:run — 102 unit tests pass
  • E2E (Playwright, production build) — 31 tests pass

🤖 Generated with Claude Code

https://claude.ai/code/session_017tRZwdXQrksTxKMm4FUNp5


Generated by Claude Code

…nents

processRscComponents accepted an appRscStream parameter and returned
appRscContent, but its only caller (buildApp) passed a dummy empty
stream and ignored the returned content — per-entry RSC payload
replacement happens in buildSingleEntry via replaceIdsInContent.

Drop the parameter and return field, delete the dummy-stream plumbing
in buildApp, and assert on idMapping instead of appRscContent in the
tests.

Closes #148

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tRZwdXQrksTxKMm4FUNp5
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.

refactor: remove vestigial appRscStream handling from processRscComponents

2 participants