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()?
optionalonOverflow: (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
Returns
void
debug?
optionaldebug:boolean
Defined in: queues/types.ts:121
Enable debug logging from the queue implementation.