fix: no remounting with ssr:false#5964
Merged
schiller-manuel merged 2 commits intomainfrom Nov 25, 2025
Merged
Conversation
Contributor
WalkthroughAdds a public Changes
Sequence Diagram(s)sequenceDiagram
%% Styling note: green = client-side, blue = router core, gray = server/hydration data
participant Browser as Browser (client)
participant RouterCore as RouterCore
participant SSRClient as ssr-client
participant Dehydrated as DehydratedState
Note over Browser,RouterCore: Navigation / Hydration start
Browser->>RouterCore: matchRoutesInternal(request)
RouterCore-->>RouterCore: create match { id, ssr: isServer ? undefined : route.options.ssr, ... }
RouterCore->>Browser: return matches
alt Hydration with dehydrated state
Browser->>Dehydrated: read dehydrated match
Dehydrated-->>SSRClient: provide dehydratedMatch
SSRClient->>RouterCore: hydrateMatch(match, dehydratedMatch)
SSRClient->>RouterCore: setRouteSsr(match) %% apply match.ssr -> route.options.ssr
else No dehydrated match found
SSRClient->>RouterCore: setRouteSsr(match) %% still apply match.ssr -> route.options.ssr
end
Note over Browser,RouterCore: Route.options.ssr now aligned with match.ssr on client
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
💤 Files with no reviewable changes (6)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Comment |
|
View your CI Pipeline Execution ↗ for commit fba306f
☁️ Nx Cloud last updated this comment at |
566022f to
fba306f
Compare
This was referenced Dec 15, 2025
naoya7076
pushed a commit
to naoya7076/router
that referenced
this pull request
Feb 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
fixes #5956
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.