add idRemoved to TreeIndex (#640)
This commit is contained in:
@@ -1619,7 +1619,7 @@ export class Replayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private warnNodeNotFound(d: incrementalData, id: number) {
|
private warnNodeNotFound(d: incrementalData, id: number) {
|
||||||
if (this.treeIndex['removeIdSet'].has(id)) {
|
if (this.treeIndex.idRemoved(id)) {
|
||||||
this.warn(`Node with id '${id}' was previously removed. `, d);
|
this.warn(`Node with id '${id}' was previously removed. `, d);
|
||||||
} else {
|
} else {
|
||||||
this.warn(`Node with id '${id}' not found. `, d);
|
this.warn(`Node with id '${id}' not found. `, d);
|
||||||
@@ -1641,7 +1641,7 @@ export class Replayer {
|
|||||||
* is microtask, so events fired on a removed DOM may emit
|
* is microtask, so events fired on a removed DOM may emit
|
||||||
* snapshots in the reverse order.
|
* snapshots in the reverse order.
|
||||||
*/
|
*/
|
||||||
if (this.treeIndex['removeIdSet'].has(id)) {
|
if (this.treeIndex.idRemoved(id)) {
|
||||||
this.debug(
|
this.debug(
|
||||||
REPLAY_CONSOLE_PREFIX,
|
REPLAY_CONSOLE_PREFIX,
|
||||||
`Node with id '${id}' was previously removed. `,
|
`Node with id '${id}' was previously removed. `,
|
||||||
|
|||||||
@@ -534,6 +534,10 @@ export class TreeIndex {
|
|||||||
this.scrollMap = new Map();
|
this.scrollMap = new Map();
|
||||||
this.inputMap = new Map();
|
this.inputMap = new Map();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public idRemoved(id: number): boolean {
|
||||||
|
return this.removeIdSet.has(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResolveTree = {
|
type ResolveTree = {
|
||||||
|
|||||||
Reference in New Issue
Block a user