-
-
Notifications
You must be signed in to change notification settings - Fork 637
[WIP] Add ability to render server components inside client components (add support for react-router) #1736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AbanoubGhadban
merged 50 commits into
abanoubghadban/pro465/use-rsc-payload-to-render-server-components-on-server
from
abanoubghadban/pro532/make-rsc-compatible-with-react-router
Jun 7, 2025
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
b074711
replace RSCPayloadContainer with RSC injection utils
AbanoubGhadban 9ed0edd
Add renderRequestId to rendering options and context for improved req…
AbanoubGhadban c99b3d3
tmp
AbanoubGhadban 5ca2a9c
trace used rsc payload streams on server and pass them to client
AbanoubGhadban 5b3d943
replace registerRouter with wrapServerComponentRenderer utility function
AbanoubGhadban 58943ca
add artifical delay amd log statements
AbanoubGhadban 0ded299
Revert "add artifical delay amd log statements"
AbanoubGhadban 64d4395
Update import statements to include file extensions
AbanoubGhadban 172bc00
add missing docs and specs
AbanoubGhadban edc7b29
remove RSCRoots and replace its test with registerServerComponent tests
AbanoubGhadban 6977ced
update injectRSCPayload tests to expect the new behavior
AbanoubGhadban 05f9cbb
fix streamServerRenderedReactComponent and helper specs
AbanoubGhadban 1a452d7
Update renderContextRows to exclude 'componentSpecificMetadata' from …
AbanoubGhadban d4c7249
fix knip errors
AbanoubGhadban 73ce3a6
Remove RSCServerRoot entry from package.json
AbanoubGhadban 0639b29
add test to test the behavior of hydrating Suspensable components
AbanoubGhadban 1dca1ca
initialize the rsc payload array in a sync manner when the generate r…
AbanoubGhadban bbc3d85
fix failing jest tests
AbanoubGhadban 51d5c97
add TypeScript ignore comment in SuspenseHydration test for Node 18+ …
AbanoubGhadban f898d5c
remove options parameter from registerServerComponent and update rela…
AbanoubGhadban d45c30e
refactor: rename WrapServerComponentRenderer to wrapServerComponentRe…
AbanoubGhadban 8d313aa
docs: add detailed JSDoc comments for RSC functions and utilities to …
AbanoubGhadban d8ea131
feat: implement post-SSR hooks for enhanced server-side rendering con…
AbanoubGhadban dcda9b0
refactor: improve type safety in server component loading and streaml…
AbanoubGhadban c05db93
fix: update module loading configuration to use environment-specific …
AbanoubGhadban 7622849
refactor: update react-on-rails-rsc dependency to use SSR support and…
AbanoubGhadban fbbc8fe
chore: update acorn and acorn-loose dependencies in yarn.lock to late…
AbanoubGhadban 33fd8a0
refactor: clarify test description for child async component hydratio…
AbanoubGhadban b69bb79
fix problem of returning the wrong stream
AbanoubGhadban e1949c4
refactor: update RailsContext types to include server component capab…
AbanoubGhadban 0e4b561
refactor: rename rscPayloadGenerationUrl to rscPayloadGenerationUrlPa…
AbanoubGhadban eb262de
refactor: enhance error handling and improve code clarity in server c…
AbanoubGhadban 382cbb9
handle trailing commas while removing packages from at CI "oldest" tests
AbanoubGhadban 99a018b
don't run SuspenseHydration tests with CI oldest tests
AbanoubGhadban 58f5a9a
chore: update testPathIgnorePatterns to exclude additional test cases…
AbanoubGhadban 711d333
chore: escape quotes in testPathIgnorePatterns for proper parsing in CI
AbanoubGhadban 432cad1
refactor: update RailsContext usage in tests to utilize RailsContextW…
AbanoubGhadban ad4dbe1
refactor: update test cases to use rscPayloadGenerationUrlPath for co…
AbanoubGhadban 251b90c
refactor: unify stream types by introducing PipeableOrReadableStream
AbanoubGhadban 448e696
refactor: replace direct checks for RSC support with a utility method…
AbanoubGhadban a8d2d1f
refactor: update stubbing in packs_generator_spec to improve clarity …
AbanoubGhadban 441c901
refactor: make renderRequestId optional in server component rendering…
AbanoubGhadban 8520d4e
refactor: remove renderRequestId from script tags in ReactOnRailsHelp…
AbanoubGhadban cb6ef79
refactor: optimize RSC payload handling and improve hook management f…
AbanoubGhadban f961a3b
refactor: ensure RSC support variable is reset in packs_generator_spe…
AbanoubGhadban 2b1517c
refactor: enhance RSC component handling by introducing promise wrapp…
AbanoubGhadban 11e4a54
refactor: make serverSideRSCPayloadParameters optional in RailsContex…
AbanoubGhadban bc4b9da
handle error happen during rsc payload generation
AbanoubGhadban 3f5fb26
add rsc payload url to context only if rsc support enabled
AbanoubGhadban 1fccd8c
removed unneeded rubocop disable statement
AbanoubGhadban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.