Skip to content
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

[FSSDK-10730] isClientReady logic adjustment #285

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

junaed-optimizely
Copy link
Contributor

@junaed-optimizely junaed-optimizely commented Oct 2, 2024

Summary

React SDK sets client.isClientReady property to true immediately if datafile presents in the config, before projectConfigManager gets ready, which should not be the case.

Test plan

Existing test should pass

Issues

FSSDK-10730

Copy link

github-actions bot commented Oct 2, 2024

Jest Coverage Report

St.
Category Percentage Covered / Total
🟢 Statements 98.95% 847/856
🟢 Branches
91.6% (-0.05% 🔻)
338/369
🟢 Functions 97.52% 157/161
🟢 Lines 99.09% 765/772
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢 client.ts 99.28%
94.33% (-0.08% 🔻)
96.97% 99.5%

Test suite run success

258 tests passing in 10 suites.

Report generated by 🧪jest coverage report action from 906faf3

@junaed-optimizely junaed-optimizely marked this pull request as ready for review October 2, 2024 11:51
src/client.ts Show resolved Hide resolved
Copy link
Contributor

@mikechu-optimizely mikechu-optimizely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I agree with the removal after reading the ticket. Thanks for testing CSR & SSR.

src/client.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@raju-opti raju-opti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@junaed-optimizely junaed-optimizely merged commit f3185b7 into master Oct 4, 2024
14 checks passed
@junaed-optimizely junaed-optimizely deleted the junaed/fssdk-10730-isclientready-bug-fix branch October 4, 2024 13:17
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.

3 participants