Skip to content

trackkit / queues/types / QueueConfig

Interface: QueueConfig ​

Defined in: queues/types.ts:102

Configuration options for the runtime event queue.

This queue sits between the facade and the provider manager, ensuring events are not lost when:

  • consent is pending,
  • the provider is still initialising,
  • or the page is briefly offline.

Properties ​

maxSize ​

maxSize: number

Defined in: queues/types.ts:109

Maximum number of events to hold in the queue.

When exceeded, older events are dropped first and optionally reported via QueueConfig.onOverflow.


onOverflow()? ​

optional onOverflow: (dropped) => void

Defined in: queues/types.ts:116

Callback invoked when events are dropped due to overflow.

Receives the list of dropped events.

Parameters ​

dropped ​

QueuedEventUnion[]

Returns ​

void


debug? ​

optional debug: boolean

Defined in: queues/types.ts:121

Enable debug logging from the queue implementation.

Released under the MIT License.