Skip to content

Commit

Permalink
fix: recording viewed event accuracy (#19928)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jan 23, 2024
1 parent 135a4a8 commit a067a47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,14 @@ export const sessionRecordingDataLogic = kea<sessionRecordingDataLogicType>([
duration: Math.round(performance.now() - cache.snapshotsStartTime),
}

actions.reportViewed()
actions.reportUsageIfFullyLoaded()

const nextSourceToLoad = sources?.find((s) => !s.loaded)

if (nextSourceToLoad) {
actions.loadRecordingSnapshots(nextSourceToLoad)
} else {
actions.reportViewed()
}
},
loadEventsSuccess: () => {
Expand Down

0 comments on commit a067a47

Please sign in to comment.