Skip to content

fix(docs): resolve SSR hydration mismatch on landing page#333

Merged
danielroe merged 1 commit intonpmx-dev:mainfrom
Flo0806:fix/docs-hero-hydration
Jan 29, 2026
Merged

fix(docs): resolve SSR hydration mismatch on landing page#333
danielroe merged 1 commit intonpmx-dev:mainfrom
Flo0806:fix/docs-hero-hydration

Conversation

@Flo0806
Copy link
Copy Markdown
Contributor

@Flo0806 Flo0806 commented Jan 29, 2026

fixes: #272


Summary

Looks like that MDC components inside the #links slot (:::u-button) are processed asynchronously. During SSR, the server doesn't await the Promise resolution and renders [object Promise] as a string → hydration mismatch.

Solution

Use links prop instead of #links slot - props are processed synchronously.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 29, 2026

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

Project Deployment Review Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 29, 2026 6:46pm
npmx.dev Ready Ready Preview, Comment Jan 29, 2026 6:46pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
npmx-lunaria Ignored Ignored Jan 29, 2026 6:46pm

Request Review

Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

thank you!

seems like a bug - cc: @farnabaz

@danielroe danielroe added this pull request to the merge queue Jan 29, 2026
Merged via the queue into npmx-dev:main with commit bd47bae Jan 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs renders [object Promise] until loading finished

2 participants