fix(router-core): defer $_TSR teardown until DOMContentLoaded#7524
Conversation
📝 WalkthroughWalkthroughDefers removal of the ChangesTSR Cleanup Deferment
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 03e8e03
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview1 package(s) bumped directly, 22 bumped as dependents. 🟩 Patch bumps
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/witty-tires-flow.md:
- Line 5: The changeset text currently includes the identifier $_TSR which may
render poorly; update the string "defer $_TSR teardown until DOMContentLoaded"
to format the identifier as inline code by wrapping $_TSR in backticks (i.e. use
`$_TSR`) so the dollar sign and backslash display correctly in release notes and
avoid parsing issues.
🪄 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: 564f58e5-d76a-4d8f-bcaf-22485525fcc6
📒 Files selected for processing (2)
.changeset/witty-tires-flow.mdpackages/router-core/src/ssr/tsrScript.ts
Bundle Size Benchmarks
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
Merging this PR will not alter performance
Comparing Footnotes
|
I'm experience an issue where the
$_TSRis deleted too early, and ends up undefined. This is a small defensive change to hold it until the streaming has ended.Summary by CodeRabbit