dillon1000/react
Commit
Browse files Use getComponentNameFromType for debug info for the key warning (#27930)
If this is a client reference we shouldn't dot into it, which would throw in the proxy. Interestingly our client references don't really have a `name` associated with them for debug information so a component type doesn't show up in error logs even though it seems like it should.
Changed paths5 files
First-parent comparisonpackages/react-client/src/__tests__/ReactFlight-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMBrowser-test.js ModifiedM packages/react/src/ReactElementValidator.js ModifiedM packages/react/src/jsx/ReactJSXElementValidator.js ModifiedM packages/shared/getComponentNameFromType.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…