-
Notifications
You must be signed in to change notification settings - Fork 47.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
Warn in dev if shouldComponentUpdate is defined on PureComponent #9239
Comments
Unrelated, but I also wanted to suggest warning for setting |
That's a great idea, happy to help anyone who wants to give this a shot |
I'd like to give this a shot :) |
What kind of warning message should it be? I'm trying to write a test first :) |
After writing a simple test code, I realized that there is a test code to ensure |
@misoguy I responded to your question in your PR! |
@aweary : Issue is open since 23 days. Would like to contribute for same. |
@gaearon : can you help me understand what is expected behavior here? I can work on adding other two warnings. @misoguy has almost completed with the |
Currently, if you define
shouldComponentUpdate
onReact.PureComponent
nothing bad happens and it acts likeReact.Component
https://jsfiddle.net/jekmdfva/We should probably warn in dev since it defaults the point of
PureComponent
The text was updated successfully, but these errors were encountered: