feat(runtime): export useHead hook from @rspress/core/runtime#3272
feat(runtime): export useHead hook from @rspress/core/runtime#3272
Conversation
Deploying rspress-v2 with
|
| Latest commit: |
a5af1bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ab4aed4d.rspress-v2.pages.dev |
| Branch Preview URL: | https://codex-expose-use-head-runtim.rspress-v2.pages.dev |
Rsdoctor Bundle Diff AnalysisFound 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff Generated by Rsdoctor GitHub Action |
There was a problem hiding this comment.
Pull request overview
This PR aligns @rspress/core/runtime’s public API with the underlying @unhead/react runtime by re-exporting the useHead hook alongside the existing Head export, enabling consumers to import useHead directly from the Rspress runtime entrypoint.
Changes:
- Re-export
useHeadfrom@unhead/reactvia@rspress/core/runtime. - Keep the runtime export surface consistent with existing head-management usage patterns.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
useHeadfrom@rspress/core/runtimeuseHeadruntime hookHeadanduseHeadTesting
pnpm --filter @rspress/core build(currently fails on an existing unrelated type error insrc/node/mdx/options.ts:MarkdownOptions.defaultCodeOverflow)npx heading-case --write website/docs/en/ui/hooks/use-head.mdx website/docs/zh/ui/hooks/use-head.mdx website/docs/en/ui/runtime-components/head.mdx website/docs/zh/ui/runtime-components/head.mdx website/docs/en/guide/advanced/custom-head.mdx website/docs/zh/guide/advanced/custom-head.mdx