We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3b29a commit 566daafCopy full SHA for 566daaf
src/client.ts
@@ -290,17 +290,10 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
290
}, timeout) as any;
291
});
292
293
- return Promise.race([this.dataReadyPromise, timeoutPromise]).then(async res => {
+ return Promise.race([this.dataReadyPromise, timeoutPromise]).then(res => {
294
clearTimeout(timeoutId);
295
if (res.success && !this.initialConfig.odpOptions?.disabled) {
296
- const isSegmentsFetched = await this.fetchQualifiedSegments();
297
- if (!isSegmentsFetched) {
298
- return {
299
- success: false,
300
- reason: 'USER_NOT_READY',
301
- message: 'Failed to fetch qualified segments',
302
- };
303
- }
+ this.fetchQualifiedSegments();
304
}
305
return res;
306
0 commit comments