Skip to content

Conversation

@rickhanlonii
Copy link
Member

Currently, 418 has an issue where the diff is included in the message with %s at the end, but we don't supply the hydration diff for security and size constraints. We're also updating the error to include text or HTML depending on the mismatch, but old errors won't have args.

This PR adds special handling to fix both, and also fixes the padding on error pages.

@vercel
Copy link

vercel bot commented Apr 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-dev ✅ Ready (Inspect) Visit Preview Apr 1, 2025 2:58pm

@rickhanlonii
Copy link
Member Author

I think we can do this in a better way by moving the custom logic into the 418.md page specific to this error, and adding sandboxes that show common causes and solution, but since this is broken in canary now let's merge and follow up with the improvements.

@rickhanlonii rickhanlonii merged commit c0e1774 into reactjs:main Apr 1, 2025
8 checks passed
@rickhanlonii rickhanlonii deleted the rh/error-418 branch April 1, 2025 15:21
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