-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Add renderer id to react-devtools injection #10475
Conversation
I think this is good, thanks. |
@gaearon Should we bikeshed the name a bit since we have to live with it forever? |
@@ -813,6 +813,7 @@ const foundDevTools = injectInternals({ | |||
// This is an enum because we may add more (e.g. profiler build) | |||
bundleType: __DEV__ ? 1 : 0, | |||
version: ReactVersion, | |||
id: 'react-dom', |
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.
rendererType: 'react-dom'
?
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.
rendererName
? rendererUniqueName
? People cloning ReactDOM might think a "type" would still be ReactDOM.
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.
rendererPackageName
? As in the npm name.
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.
Sounds good to me!
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.
Let's change to rendererPackageName
.
Hey! I changed the name. |
@@ -813,7 +813,7 @@ const foundDevTools = injectInternals({ | |||
// This is an enum because we may add more (e.g. profiler build) | |||
bundleType: __DEV__ ? 1 : 0, | |||
version: ReactVersion, | |||
id: 'react-dom', | |||
rendererPackageName: 'react-dom', |
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.
Could you also please add this to React Native entries?
It seems like we don't want to see any renderer duplicated, not About adding to |
Can you file another PR for ReactART? I think it doesn't even contain a call now. We should add it. |
I'll do that. I'll update the devtools PR as well, detecting not |
That sounds great. Thanks! |
Helps to resolve
react-devtools
700 — reporting multiplereact-dom
copies.I added
id
argument to detectreact-dom
without code-guessing.