[DevTools] Remove spurious warnings when creating Suspense timeline from a Transition (#36133)
Sebastian "Sebbie" Silbermann committed
Apr 8, 2026 at 18:49 UTC
0c44b96e97c595198f30bdbe0f637f92ed74ed95
1 file changed
+4
-4
packages/react-devtools-shared/src/devtools/store.js
+4
-4
@@ -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) {
1018
+ const suspense = this._idToSuspense.get(childID);
1019
+ if (suspense !== undefined) {
1020
target.push(suspense.id);
1021
} else {
1022
- const childElement = this.getElementByID(childID);
1023
- if (childElement !== null) {
1022
+ const childElement = this._idToElement.get(childID);
1023
+ if (childElement !== undefined) {
1024
this._pushSuspenseChildrenInDocumentOrder(
1025
childElement.children,
1026
target,