We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caad5b2 commit 906faf3Copy full SHA for 906faf3
src/client.ts
@@ -240,6 +240,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
240
});
241
242
this._client = optimizely.createInstance(configWithClientInfo);
243
+ this.isClientReady = !!this.getOptimizelyConfig();
244
this.isUsingSdkKey = !!configWithClientInfo.sdkKey;
245
246
if (this._client) {
@@ -249,7 +250,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
249
250
([userResult, clientResult]) => {
251
this.isClientReady = clientResult.success;
252
this.isUserReady = userResult.success;
- const clientAndUserReady = this.isClientReady && this.isUserReady;
253
+ const clientAndUserReady = this.isReady();
254
this.clientAndUserReadyPromiseFulfilled = true;
255
256
return {
0 commit comments