We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a84d4a3 commit 2f58f8eCopy full SHA for 2f58f8e
1 file changed
packages/core/source/elements/RemoteMutationObserver.ts
@@ -41,6 +41,16 @@ export class RemoteMutationObserver extends MutationObserver {
41
42
if (record.type === 'childList') {
43
record.removedNodes.forEach((node) => {
44
+ if (!REMOTE_IDS.has(node)) {
45
+ /**
46
+ * This happens if the node was not recognized during the
47
+ * `serializeRemoteNode` of a (probably direct and extensive)
48
+ * previous mutation-record (serializeRemoteNode), when it
49
+ * was no longer in the DOM at that time of processing.
50
+ */
51
+ return;
52
+ }
53
+
54
disconnectRemoteNode(node);
55
56
remoteRecords.push([
0 commit comments