File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/analytics-js/src/components/eventRepository Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -104,14 +104,15 @@ class EventRepository implements IEventRepository {
104
104
private startDpEventsQueue ( ) {
105
105
const bufferEventsUntilReady = state . loadOptions . value
106
106
. bufferDataPlaneEventsUntilReady as boolean ;
107
+
107
108
const hybridDestExist = state . nativeDestinations . activeDestinations . value . some (
108
109
( dest : Destination ) => isHybridModeDestination ( dest ) ,
109
110
) ;
110
111
const shouldBufferDpEvents = bufferEventsUntilReady && hybridDestExist ;
111
112
112
113
let timeoutId : number ;
113
114
// 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
115
116
effect ( ( ) => {
116
117
if (
117
118
( ! shouldBufferDpEvents || state . nativeDestinations . clientDestinationsReady . value ) &&
You can’t perform that action at this time.
0 commit comments