-
Notifications
You must be signed in to change notification settings - Fork 31
feat: add initial polling retries to BrowserDataManager #1030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
38ca87d
9a9e637
6786e12
b18022a
6affd78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,4 +28,11 @@ export interface BrowserIdentifyOptions extends Omit<LDIdentifyOptions, 'waitFor | |
| * For more information, see the [SDK Reference Guide](https://docs.launchdarkly.com/sdk/features/bootstrapping#javascript). | ||
| */ | ||
| bootstrap?: unknown; | ||
|
|
||
| /** | ||
| * The number of retries to attempt for the initial polling request. | ||
| * | ||
| * Defaults to 3. | ||
| */ | ||
| initialPollingRetries?: number; | ||
|
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a reasonable start, and then we should look at adding some backoff to it later.
With FDv2 we may consider things a little differently. For example, if streaming is enabled, then this failing just means we may end up initializing from streaming. So we don't want to spend too long on this step.