Conversation
📝 WalkthroughWalkthroughThis PR fixes a hydration bug where loaders re-ran during client-side initialization when search parameters contained special characters that encode differently on server versus client. The fix adjusts how Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 5f71fa7
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
Bundle Size Benchmarks
Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@nx.json`:
- Line 6: This PR contains an unrelated workspace-wide CI parallelism change:
the "parallel" key in nx.json was bumped to 10; revert that change (restore the
previous value for "parallel") or remove the modified "parallel" entry from this
branch and submit it as a separate infra/CI PR with benchmarking/CI-capacity
evidence; ensure the only changes remaining in this PR touch router-core
hydration/publicHref fixes and that no other global CI settings (the "parallel"
field in nx.json) are altered.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 9c988c1c-a030-46f1-9156-dc7600f7b4dc
📒 Files selected for processing (4)
e2e/react-start/basic-test-suite/src/special-characters.spec.tse2e/react-start/basic/src/routes/specialChars/search.tsxnx.jsonpackages/router-core/src/router.ts
…n' into align-parseLocation-buildLocation
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
fixes: #7029
This PR addresses a mismatch between parseLocation and buildLocation in determining the publicHref.
In cases where these do not match due to how buildLocation determines the path (might include encoded characters) and parseLocation that uses the processed href this can cause the loader to run a second time on client after SSR.
Summary by CodeRabbit
New Features
Tests
Chores