-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Fix warnings introduced by latest React canary #35987
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eps1lon
commented
Jan 29, 2023
Comment on lines
-522
to
-533
this.assert( | ||
expectedMessages.length > 0, | ||
`Expected to call console.${methodName} but didn't provide messages. ` + | ||
`If you don't expect any messages prefer \`expect().not.${matcherName}();\`.`, | ||
`Expected no call to console.${methodName} while also expecting messages.` + | ||
'Expected no call to console.error but provided messages. ' + | ||
"If you want to make sure a certain message isn't logged prefer the positive. " + | ||
'By expecting certain messages you automatically expect that no other messages are logged', | ||
// Not interested in a diff but the typings require the 4th parameter. | ||
undefined, | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be annoying to handle code that only warns in specific React versions.
eps1lon
added
test
component: autocomplete
This is the name of the generic UI component, not the React module!
labels
Jan 29, 2023
Netlify deploy previewhttps://deploy-preview-35987--material-ui.netlify.app/ Bundle size report |
github-actions
bot
added
the
PR: out-of-date
The pull request has merge conflicts and can't be merged
label
Feb 16, 2023
…ontrolled components
eps1lon
force-pushed
the
test/react-next
branch
from
April 16, 2023 08:49
1c52c29
to
d2ff138
Compare
github-actions
bot
removed
the
PR: out-of-date
The pull request has merge conflicts and can't be merged
label
Apr 16, 2023
github-actions
bot
added
the
PR: out-of-date
The pull request has merge conflicts and can't be merged
label
May 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
PR: out-of-date
The pull request has merge conflicts and can't be merged
test
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I would recommend splitting these out into individual PRs since some changes affect shipped code. I won't have the time to do that though but it should be straig forward since I handled different warnings in different commits.
Notable React canary changes are the introduction of warnings for usage of
defaultProps
and spreadingkey
(part of reactjs/rfcs#107)Part of #14761