Skip to content

Commit 3c932c3

Browse files
committed
feat(replay): Add warning message for Angular default Change Detection Strategy
Add a warning message for Angular as it can break customer sites (or lead to performance problems) when using the default change detection strategy due to their monkeypatching of globals (Zone.js)
1 parent c0bceab commit 3c932c3

File tree

1 file changed

+6
-0
lines changed
  • docs/platforms/javascript/common/session-replay

1 file changed

+6
-0
lines changed

docs/platforms/javascript/common/session-replay/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ description: "Learn how to enable Session Replay in your app if it is not alread
2626

2727
By default, our Session Replay SDK masks all DOM text content, images, and user input, giving you heightened confidence that no sensitive data will leave the browser. To learn more, see <PlatformLink to="/session-replay/privacy">Session Replay Privacy</PlatformLink>.
2828

29+
<PlatformSection supported={["javascript.angular"]}>
30+
<Alert level="error">
31+
Angular's [default "Change Detection" strategy](https://angular.dev/api/core/ChangeDetectionStrategy#Default) monkeypatches browser globals and can break or cause performance regressions to your application when using Session Replay. We recommend you only use the `OnPush` strategy when using Angular.
32+
</Alert>
33+
</PlatformSection>
34+
2935
## Pre-requisites
3036

3137
<PlatformContent includePath="session-replay/pre-requisites" />

0 commit comments

Comments
 (0)