File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/react-devtools-shared/src/devtools/views/Components Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ import Button from '../Button';
1717import ButtonIcon from '../ButtonIcon' ;
1818import Icon from '../Icon' ;
1919import Toggle from '../Toggle' ;
20- import { ElementTypeSuspense } from 'react-devtools-shared/src/frontend/types' ;
20+ import {
21+ ElementTypeSuspense ,
22+ ElementTypeRoot ,
23+ } from 'react-devtools-shared/src/frontend/types' ;
2124import InspectedElementView from './InspectedElementView' ;
2225import { InspectedElementContext } from './InspectedElementContext' ;
2326import { getAlwaysOpenInEditor } from '../../../utils' ;
@@ -209,6 +212,11 @@ export default function InspectedElementWrapper(_: Props): React.Node {
209212 if ( element . nameProp !== null ) {
210213 fullName += ' "' + element . nameProp + '"' ;
211214 }
215+ if ( element . type === ElementTypeRoot ) {
216+ // The root only has "suspended by" and it represents the things that block
217+ // Initial Paint.
218+ fullName = 'Initial Paint' ;
219+ }
212220
213221 return (
214222 < div
You can’t perform that action at this time.
0 commit comments