Skip to content

Split the docs#600

Open
mdo wants to merge 2 commits intomainfrom
mdo/docs-split
Open

Split the docs#600
mdo wants to merge 2 commits intomainfrom
mdo/docs-split

Conversation

@mdo
Copy link
Copy Markdown
Contributor

@mdo mdo commented Apr 23, 2026

  • apps/docs/ is now apps/docs-diffs/ and apps/docs-trees
  • Shared bits are now in packages/docs-shared

Still working through the long tail details.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Apr 23, 2026 9:40pm
pierrejs-docs Error Error Apr 23, 2026 9:40pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c17d2e321

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +80 to +84
const [pathname, setPathname] = useState('/');

useEffect(() => {
setPathname(window.location.pathname);
}, []);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use router pathname for nav active state

The header now hard-codes pathname to '/' for the initial render and only corrects it in a mount effect, so non-home pages (for example /docs, /playground, /theme) render with the Home tab highlighted until hydration completes. This is a user-visible regression from the previous usePathname() behavior and can also leave stale active-state UI if the header remains mounted across client transitions; derive the path from the Next router instead of window.location in an effect.

Useful? React with 👍 / 👎.

@mdo
Copy link
Copy Markdown
Contributor Author

mdo commented Apr 23, 2026

Follow-up for the dev memory blowouts I've been seeing—docs-shared now builds to dist/ via tsdown. This let me start my dev server without it blowing up the memory to 100GB.

@SlexAxton
Copy link
Copy Markdown
Contributor

ehhhh fine, could just be two directories in one app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants