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

[Fizz] Add failing test for failed hydration when using uSES in StrictMode #26113

Closed
wants to merge 3 commits into from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Feb 6, 2023

Summary

Failing test for #26095

How did you test this change?

  • yarn test ReactDOMFizzServer-test

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 6, 2023
Comment on lines 2381 to 2386
expect(Scheduler).toFlushAndYield([
'Nay!',
// Missing flushAndYield
// 'Yay!'
]);
}).toErrorDev([]);
Copy link
Collaborator Author

@eps1lon eps1lon Feb 6, 2023

Choose a reason for hiding this comment

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

Without StrictMode it doesn't error.

@react-sizebot
Copy link

react-sizebot commented Feb 6, 2023

Comparing: b600620...b37bce4

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 164.42 kB 164.42 kB = 51.69 kB 51.69 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 166.86 kB 166.86 kB = 52.34 kB 52.34 kB
facebook-www/ReactDOM-prod.classic.js = 564.45 kB 564.45 kB = 99.40 kB 99.40 kB
facebook-www/ReactDOM-prod.modern.js = 548.24 kB 548.24 kB = 96.71 kB 96.71 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against b37bce4

@Yasikov04

This comment was marked as spam.

@eps1lon eps1lon force-pushed the test/strict-uses-hydration branch from e5823a1 to eb4a9f4 Compare February 6, 2023 17:47
eps1lon added a commit to eps1lon/material-ui that referenced this pull request Apr 16, 2023
@eps1lon eps1lon force-pushed the test/strict-uses-hydration branch from eb4a9f4 to 443ceca Compare April 16, 2023 08:58
@eps1lon eps1lon force-pushed the test/strict-uses-hydration branch from 443ceca to b37bce4 Compare April 16, 2023 09:48
sophiebits added a commit to sophiebits/react that referenced this pull request May 7, 2023
Previously, we'd call and use getSnapshot on the second render resulting in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"` and then `Error: Text content does not match server-rendered HTML.`.

Fixes facebook#26095. Closes facebook#26113.
sophiebits added a commit that referenced this pull request May 12, 2023
Previously, we'd call and use getSnapshot on the second render resulting
in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"`
and then `Error: Text content does not match server-rendered HTML.`.

Fixes #26095. Closes #26113. Closes #25650.

---------

Co-authored-by: eps1lon <[email protected]>
github-actions bot pushed a commit that referenced this pull request May 12, 2023
Previously, we'd call and use getSnapshot on the second render resulting
in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"`
and then `Error: Text content does not match server-rendered HTML.`.

Fixes #26095. Closes #26113. Closes #25650.

---------

Co-authored-by: eps1lon <[email protected]>

DiffTrain build for [4cd7065](4cd7065)
@eps1lon eps1lon deleted the test/strict-uses-hydration branch March 14, 2024 14:15
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Previously, we'd call and use getSnapshot on the second render resulting
in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"`
and then `Error: Text content does not match server-rendered HTML.`.

Fixes facebook#26095. Closes facebook#26113. Closes facebook#25650.

---------

Co-authored-by: eps1lon <[email protected]>
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Previously, we'd call and use getSnapshot on the second render resulting
in `Warning: Text content did not match. Server: "Nay!" Client: "Yay!"`
and then `Error: Text content does not match server-rendered HTML.`.

Fixes #26095. Closes #26113. Closes #25650.

---------

Co-authored-by: eps1lon <[email protected]>

DiffTrain build for commit 4cd7065.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants