dillon1000/react
Commit
Browse files Add warning for shady-dom use with rendered react components in DEV (#7911)
* Add warning for shady-dom use with rendered react components in DEV * Make shady dom warning emit only once regardless of number of components * Use didWarnShadyDom as warning argument & add missing shadyRoot check to ReactDOMComponent * Add check for shady dom test to run only when createElement flag is true * Pass false to warning in shadyDom warning check * Add consistent DOM phrasing for shady DOM warnings * Reference component name in shady DOM warning if it exists * Add check for if owner exists in shady dom warning * Add test for named component using createClass for shady DOM warning * Clean up named component test for shady DOM warning * Fix trailing comma linting issue on named shady DOM warning test
Changed paths2 files
First-parent comparisonsrc/renderers/dom/shared/ReactDOMComponent.js ModifiedM src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…