File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react-devtools-shared/src/devtools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1015,12 +1015,12 @@ export default class Store extends EventEmitter<{
10151015 ) : void {
10161016 for ( let i = 0 ; i < children . length ; i ++ ) {
10171017 const childID = children [ i ] ;
1018- const suspense = this . getSuspenseByID ( childID ) ;
1019- if ( suspense !== null ) {
1018+ const suspense = this . _idToSuspense . get ( childID ) ;
1019+ if ( suspense !== undefined ) {
10201020 target . push ( suspense . id ) ;
10211021 } else {
1022- const childElement = this . getElementByID ( childID ) ;
1023- if ( childElement !== null ) {
1022+ const childElement = this . _idToElement . get ( childID ) ;
1023+ if ( childElement !== undefined ) {
10241024 this . _pushSuspenseChildrenInDocumentOrder (
10251025 childElement . children ,
10261026 target ,
You can’t perform that action at this time.
0 commit comments