-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Button] Fix regression from context API #29982
Conversation
@oliviertassinari from your comment, is this the expected behavior? https://codesandbox.io/s/create-react-app-forked-jtsch?file=/src/App.js |
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.
It's much cleaner. Could you take a look at the comments?
7b7b26e
to
2ec7ff4
Compare
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.
👌
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.
Nice, thanks 👍
close #29741
close #29598
(PR) close #29613
summary
mergeProps
that is similar touseThemeProps
to combine propsinProps
>contextProps
>themeDefaultProps
.the code to look similar to the code before the regression (except className that is added because of the context props).