Skip to content

Commit da2487e

Browse files
authored
fix(replay): Mark ui.slowClickDetected clickCount as optional (#8376)
This field was added as part of v7.56.0, but `SlowClickFrameData` was created before that. Having `clickCount` be required breaks backwards compatibility, it should be optional.
1 parent 4fb043e commit da2487e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/replay/src/types/replayFrame.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ interface SlowClickFrameData extends ClickFrameData {
9191
route?: string;
9292
timeAfterClickMs: number;
9393
endReason: string;
94-
clickCount: number;
94+
clickCount?: number;
9595
}
9696
export interface SlowClickFrame extends BaseBreadcrumbFrame {
9797
category: 'ui.slowClickDetected';

0 commit comments

Comments
 (0)