Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/react-devtools-shared/src/devtools/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,13 @@ export default class Store extends EventEmitter<{
}

const index = parentSuspense.children.indexOf(id);
if (index === -1) {
this._throwAndEmitError(
Error(
`Cannot remove suspense node "${id}" from parent "${parentID}" because it is not a child of the parent.`,
),
);
}
parentSuspense.children.splice(index, 1);
}
}
Expand Down
Loading