Skip to content

Commit 663d9cd

Browse files
committed
chore: update documentation
1 parent 63d36ca commit 663d9cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/analytics-js/src/components/eventRepository/EventRepository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,15 @@ class EventRepository implements IEventRepository {
104104
private startDpEventsQueue() {
105105
const bufferEventsUntilReady = state.loadOptions.value
106106
.bufferDataPlaneEventsUntilReady as boolean;
107+
107108
const hybridDestExist = state.nativeDestinations.activeDestinations.value.some(
108109
(dest: Destination) => isHybridModeDestination(dest),
109110
);
110111
const shouldBufferDpEvents = bufferEventsUntilReady && hybridDestExist;
111112

112113
let timeoutId: number;
113114
// Start the queue when no event buffering is required
114-
// or when the client destinations are ready
115+
// or when buffering is required and the client destinations are ready
115116
effect(() => {
116117
if (
117118
(!shouldBufferDpEvents || state.nativeDestinations.clientDestinationsReady.value) &&

0 commit comments

Comments
 (0)