Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydration errors and other noise #9271

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Hydration errors and other noise #9271

merged 2 commits into from
Feb 28, 2024

Conversation

a-hariti
Copy link
Collaborator

Pre-merge checklist

If you work at Sentry, you're able to merge your own PR without review, but please don't unless there's a good reason.

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs
  • PR was reviewed and approved by a member of the Sentry docs team

Description of changes

the hydration errors are coming from the generated HTML by MDX, which we can't really control in any simple way

I just suppressed using suppressHydrationWarning

I also took the liberty to fix a warning on a Styled Component of an unrecognized prop on a DOM node

Overall we have less noise on the dev console :)

This PR closes: #9055

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Extra resources

Copy link

vercel bot commented Feb 28, 2024

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

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 2:09pm

Copy link

codecov bot commented Feb 28, 2024

Bundle Report

Changes will increase total bundle size by 169 bytes ⬆️

Bundle name Size Change
sentry-docs-server 5.89MB 121 bytes ⬆️
sentry-docs-edge-server 3.47kB 0 bytes
sentry-docs-client 5.53MB 48 bytes ⬆️

Copy link

@mjq-sentry mjq-sentry left a comment

Choose a reason for hiding this comment

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

Eventually I think actually fixing these issues would be nice, but we can slowly move the suppressHydrationWarning deeper in the tree to do so. For now this is good just to quiet the hydration errors, since currently they sometimes mask other, more important errors 👍

@mjq-sentry mjq-sentry merged commit 0f6ece5 into master Feb 28, 2024
8 checks passed
@mjq-sentry mjq-sentry deleted the hydration-errors branch February 28, 2024 19:48
@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Hydration errors
2 participants