We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6066c78 commit 03ca38eCopy full SHA for 03ca38e
1 file changed
packages/react-devtools-shared/src/devtools/store.js
@@ -1873,6 +1873,13 @@ export default class Store extends EventEmitter<{
1873
}
1874
1875
const index = parentSuspense.children.indexOf(id);
1876
+ if (index === -1) {
1877
+ this._throwAndEmitError(
1878
+ Error(
1879
+ `Cannot remove suspense node "${id}" from parent "${parentID}" because it is not a child of the parent.`,
1880
+ ),
1881
+ );
1882
+ }
1883
parentSuspense.children.splice(index, 1);
1884
1885
0 commit comments