-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Warning about unknown property happened when creating element #6345
Conversation
@@ -61,6 +59,4 @@ var ReactDOMDebugTool = { | |||
}, | |||
}; | |||
|
|||
ReactDOMDebugTool.addDevtool(ReactDOMUnknownPropertyDevtool); |
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.
Why are you removing the devtool? This appears to be going in the wrong/opposite direction.
null | ||
); | ||
|
||
warning( |
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.
I think we want to use the “devtool” API for the new warnings. You can check how ReactDOMUnknownPropertyDevtool
currently works for the context—it just needs to be called during the element creation.
…during property operation
I modified some method so that ReactDOMUnknownPropertyDevtool would be called on element creation. Is it the right way? |
@Sumei1009 updated the pull request. |
Can you please rebase so it merges cleanly, and fix the lint issues? You can run |
Ping @Sumei1009 |
fixes #2887