Skip to content

fix: Report data source state as valid after bootstrap#1203

Open
kinyoklion wants to merge 1 commit intomainfrom
rlamb/bootstrap-datasource-valid
Open

fix: Report data source state as valid after bootstrap#1203
kinyoklion wants to merge 1 commit intomainfrom
rlamb/bootstrap-datasource-valid

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Mar 18, 2026

Note

Low Risk
Low risk: a small state-reporting change limited to the bootstrap identify path, covered by an updated unit test asserting the dataSourceStatus event.

Overview
When identify completes using bootstrap data, BrowserDataManager now explicitly reports the data source status as valid by calling dataSourceStatusManager.requestStateUpdate(DataSourceState.Valid).

The bootstrap identify unit test is updated to assert that a dataSourceStatus event is emitted with state: 'VALID' after bootstrap initialization.

Written by Cursor Bugbot for commit 6d3276f. This will update automatically on new commits. Configure here.

When loading bootstrap data, the data source status was never updated
to VALID, leaving it in the default CLOSED state. This adds the missing
requestStateUpdate call so consumers can rely on dataSourceStatus events
for bootstrap-initialized clients.
@kinyoklion kinyoklion requested a review from a team as a code owner March 18, 2026 22:40
@github-actions
Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25566 bytes
Compressed size limit: 26000
Uncompressed size: 125383 bytes

@github-actions
Copy link
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 172365 bytes
Compressed size limit: 200000
Uncompressed size: 802275 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 24546 bytes
Compressed size limit: 25000
Uncompressed size: 85156 bytes

@github-actions
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 22203 bytes
Compressed size limit: 24000
Uncompressed size: 115238 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants