[Bug]: Node Parent casting of undefined
yimejky opened this issue · comments
Preflight Checklist
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
What package is this bug report for?
rrweb
Version
2.0.0-alpha.12
Expected Behavior
The library shouldn't crash and spam the web and its performance.
Actual Behavior
We have an angular web, where we use Posthog monitoring, and the problematic part seems to be this lib. One of our forms starts to spam the console and the performance with an error after rendering.
I backtracked the code to
rrweb/packages/rrweb/src/record/mutation.ts
Line 444 in 3d1877c
where the casting pretends the node always has a parent, and it's connected to the DOM.
Steps to Reproduce
Unfortunately, I have no idea why is it happening. My suspect is race condition of too many updates or something like that. The problematic node simply doesn't have a parent at the time of execution.
Is this fixed in #1445 ?
Is this fixed in #1445 ?
Probably yes. I will update our FE this week.