-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular change detection problems in Replay #12443
Comments
rrweb-snapshot
)
This should help on the rrweb side of things: https://github.com/rrweb-io/rrweb/pull/1509/files |
I think there are a few potential solutions: Continue using
|
I will bring this up with the team next week if they have preferences but I agree, none of these options seem great. my thoughts (please correct me if I'm wrong)
|
Angular monkeypatches browser APIs so that when they are called, will trigger Angular's change detection. This means that our SDK can end up causing customer applications to unnecessarily re-render, which in turn causes our Replay SDK to perform more work and can even cause performance regressions.
Some example areas where this happens:
rrweb-snapshot
package,snapshot.ts
is using the globalsetTimeout
andclearTimeout
functions, which are monkeypatched by Angular and triggers their change detection.Promise
EventTarget
(e.g.window
,Performance
,Worker
)Related to #11661
The text was updated successfully, but these errors were encountered: