Uh oh!
There was an error while loading. Please reload this page.
Add renderer id to react-devtools injection - #10475
Conversation
gaearon
commented
Aug 17, 2017
I think this is good, thanks. |
sebmarkbage
commented
Aug 18, 2017
@gaearon Should we bikeshed the name a bit since we have to live with it forever? |
| // 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.
rendererType: 'react-dom'?
There was a problem hiding this comment.
rendererName? rendererUniqueName? People cloning ReactDOM might think a "type" would still be ReactDOM.
There was a problem hiding this comment.
rendererPackageName? As in the npm name.
gaearon
left a comment
There was a problem hiding this comment.
Let's change to rendererPackageName.
chisler
commented
Aug 21, 2017
Hey! I changed the name. |
| bundleType: __DEV__ ? 1 : 0, | ||
| version: ReactVersion, | ||
| id: 'react-dom', | ||
| rendererPackageName: 'react-dom', |
There was a problem hiding this comment.
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 |
gaearon
commented
Aug 21, 2017
Can you file another PR for ReactART? I think it doesn't even contain a call now. We should add it. |
chisler
commented
Aug 21, 2017
I'll do that. I'll update the devtools PR as well, detecting not |
gaearon
commented
Aug 21, 2017
That sounds great. Thanks! |
* add renderer id to react-devtools injection * rename renderer id to rendererPackageName in react-dom injection * add rendererPackageName to react-native entries
Helps to resolve
react-devtools700 — reporting multiplereact-domcopies.I added
idargument to detectreact-domwithout code-guessing.