Skip to content

Commit 84a9119

Browse files
authored
fix: Session replay intermittently showing No replay available for this session (#858)
fixes HDX-1787
1 parent fe8ed22 commit 84a9119

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.changeset/short-rockets-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperdx/app": patch
3+
---
4+
5+
fix: Session replay intermittently showing "No replay available for this session"

packages/app/src/DOMPlayer.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -513,18 +513,17 @@ export default function DOMPlayer({
513513
No replay available for this session, most likely due to this
514514
session starting and ending in a background tab.
515515
</div>
516-
) : (
517-
<div
518-
ref={wrapper}
519-
className={cx(styles.domPlayerWrapper, 'overflow-hidden', {
520-
'd-none': isLoading || isBuffering,
521-
started: (replayer.current?.getCurrentTime() ?? 0) > 0,
522-
[styles.domPlayerWrapperPaused]: playerState === 'paused',
523-
})}
524-
>
525-
<div className="player rr-block" ref={playerContainer} />
526-
</div>
527-
)}
516+
) : null}
517+
<div
518+
ref={wrapper}
519+
className={cx(styles.domPlayerWrapper, 'overflow-hidden', {
520+
'd-none': isLoading || isBuffering,
521+
started: (replayer.current?.getCurrentTime() ?? 0) > 0,
522+
[styles.domPlayerWrapperPaused]: playerState === 'paused',
523+
})}
524+
>
525+
<div className="player rr-block" ref={playerContainer} />
526+
</div>
528527
</div>
529528
</>
530529
);

0 commit comments

Comments
 (0)