Skip to content

Commit d1399f4

Browse files
committed
wip
1 parent 53a06e6 commit d1399f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/browser/src/plugins/segmentio/shared-dispatcher.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export type FetchPriority = 'high' | 'low' | 'auto'
2323
interface DispatchConfig {
2424
/**
2525
* This is useful for ensuring that an event is sent even if the user navigates away from the page.
26-
* However, it may increase the likelihood of events being lost, as there is a 64kb limit for all fetch requests with keepalive (which is why it's disabled by default).
26+
* However, it may increase the likelihood of events being lost, as there is a 64kb limit for *all* fetch requests (not just ones to segment) with keepalive (which is why it's disabled by default). So, if you're sending a lot of data, this will likely cause events to be dropped.
2727
* @default false
2828
*/
2929
keepalive?: boolean
@@ -35,9 +35,7 @@ interface DispatchConfig {
3535
*/
3636
additionalHeaders?: AdditionalHeaders
3737
/**
38-
* Priority of the request.
39-
* chrome only
40-
* @default 'auto'
38+
* 'Fetch Priority' of the request (chrome-only).
4139
*/
4240
fetchPriority?: FetchPriority
4341
}

0 commit comments

Comments
 (0)