Skip to content

feat(ssr): improve ssr hydration mismatch checks - #5953

Merged
yyx990803 merged 2 commits into
minorfrom
ssr-mismatch-check
Dec 8, 2023
Merged

feat(ssr): improve ssr hydration mismatch checks#5953
yyx990803 merged 2 commits into
minorfrom
ssr-mismatch-check

Conversation

@yyx990803

@yyx990803 yyx990803 commented May 19, 2022

Copy link
Copy Markdown
Member
  • Include the actual element in the warning message
  • Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be rectified. This is because the performance overhead of checking and rectifying all props in production will be prohibitively expensive.

The check could potentially lead to false positives so we need to test this in a beta.

close #5063

- Include the actual element in the warning message
- Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be
rectified.

close #5063
@yyx990803
yyx990803 merged commit 2ffc1e8 into minor Dec 8, 2023
@yyx990803
yyx990803 deleted the ssr-mismatch-check branch December 8, 2023 07:49
yyx990803 added a commit that referenced this pull request Dec 12, 2023
…ings

this was swapped in #9098 but lost when merging #5953
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

SSR/Hydration: Re-Render due to hydration mismatch creates inconsistent DOM - textContent updated correctly, class attr isn't.

1 participant