-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: no remounting with ssr:false #5964
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
Conversation
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
fixes #5956
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.