From 5b9b7e36b052e9ef15f329f7f328ed05439251b2 Mon Sep 17 00:00:00 2001 From: Sebastian Sebbie Silbermann Date: Mon, 23 Mar 2026 17:58:57 +0100 Subject: [PATCH] [DevTools] Remove spurious warnings when creating Suspense timeline from a Transition --- packages/react-devtools-shared/src/devtools/store.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-devtools-shared/src/devtools/store.js b/packages/react-devtools-shared/src/devtools/store.js index 3849da9e5736..3abd6f3c030d 100644 --- a/packages/react-devtools-shared/src/devtools/store.js +++ b/packages/react-devtools-shared/src/devtools/store.js @@ -1011,12 +1011,12 @@ export default class Store extends EventEmitter<{ ): void { for (let i = 0; i < children.length; i++) { const childID = children[i]; - const suspense = this.getSuspenseByID(childID); - if (suspense !== null) { + const suspense = this._idToSuspense.get(childID); + if (suspense !== undefined) { target.push(suspense.id); } else { - const childElement = this.getElementByID(childID); - if (childElement !== null) { + const childElement = this._idToElement.get(childID); + if (childElement !== undefined) { this._pushSuspenseChildrenInDocumentOrder( childElement.children, target,