fix(react): support raw content in Head#894
Conversation
|
Warning Review limit reached
Next review available in: 28 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe React ChangesReact raw head content
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ReactHead
participant normalizeRawContent
participant DOMOrSSRRenderer
ReactHead->>normalizeRawContent: normalize head element props
normalizeRawContent->>ReactHead: return textContent or innerHTML
ReactHead->>DOMOrSSRRenderer: render normalized head input
DOMOrSSRRenderer-->>ReactHead: produce DOM nodes or serialized HTML
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
📦 Bundle Size✅ No notable changes All bundles (14)
📦 Runtime Dependencies✅ No runtime dependency changes All packages (10)
Skipped optional dependencies (114)
Production dependencies only. Peer dependencies and Unhead workspace packages are excluded. Skipped optional dependencies are unavailable on the CI platform. ⚡ Performance (directional)✅ No significant change (within CI noise) All benchmarks (14)
Baseline: main @ d9b3d2a · 2026-07-26 · gzipped is the headline size metric · perf is directional (shared-runner, gated) |
…ntent # Conflicts: # packages/react/src/components.ts
# Conflicts: # packages/react/src/components.ts
🔗 Linked issue
No linked issue.
❓ Type of change
📚 Description
dangerouslySetInnerHTMLis currently emitted as an attribute by the React<Head>adapter, leaving script, style, noscript, and title content empty. Map valid raw content to Unhead's content fields, reject conflicting shapes, and retain SSR breakout protection.Summary by CodeRabbit
New Features
Bug Fixes