Skip to content
Open
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
17 changes: 9 additions & 8 deletions packages/react-devtools-shared/src/devtools/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1572,17 +1572,18 @@ export default class Store extends EventEmitter<{
const id = operations[i];
const element = this._idToElement.get(id);

i += 1;
if (element === undefined) {
this._throwAndEmitError(
Error(
`Cannot remove node "${id}" because no matching node was found in the Store.`,
),
);

break;
/*
- there may be further nodes in the batch to be processed hence throwing error right now is not a good soln
- Our store may be partially updated because of this logic
- So I changed it to look for further nodes and skip removing this node
- logically as it is absent so its better logically
*/
continue;
}

i += 1;


const {children, ownerID, parentID, weight} = element;
if (children.length > 0) {
Expand Down