We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b45e24 commit 0c44b96Copy full SHA for 0c44b96
1 file changed
packages/react-devtools-shared/src/devtools/store.js
@@ -1015,12 +1015,12 @@ export default class Store extends EventEmitter<{
1015
): void {
1016
for (let i = 0; i < children.length; i++) {
1017
const childID = children[i];
1018
- const suspense = this.getSuspenseByID(childID);
1019
- if (suspense !== null) {
+ const suspense = this._idToSuspense.get(childID);
+ if (suspense !== undefined) {
1020
target.push(suspense.id);
1021
} else {
1022
- const childElement = this.getElementByID(childID);
1023
- if (childElement !== null) {
+ const childElement = this._idToElement.get(childID);
+ if (childElement !== undefined) {
1024
this._pushSuspenseChildrenInDocumentOrder(
1025
childElement.children,
1026
target,
0 commit comments