Skip to content

Commit 636c193

Browse files
billyvglizokm
andauthored
feat(replay): Add warning message for Angular default Change Detection Strategy (#11604)
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) --------- Co-authored-by: Liza Mock <[email protected]>
1 parent 7a7d9d8 commit 636c193

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="danger">
31+
Angular's <a target="_blank" rel="noopener noreferrer" href="https://angular.dev/api/core/ChangeDetectionStrategy#Default">default "Change Detection" strategy</a> monkeypatches browser globals and can break or cause performance regressions in your application when using Session Replay. To avoid this, we recommend you 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)