diff --git a/sdk/js/src/ConfigRequestConsolidator.ts b/sdk/js/src/ConfigRequestConsolidator.ts index 12604cc31..69dddf2f3 100644 --- a/sdk/js/src/ConfigRequestConsolidator.ts +++ b/sdk/js/src/ConfigRequestConsolidator.ts @@ -89,8 +89,12 @@ export class ConfigRequestConsolidator { this.requestParams ? this.requestParams : undefined, ) this.requestParams = null - const bucketedConfig = await this.currentPromise - this.currentPromise = null + const bucketedConfig = await this.currentPromise.finally(() => { + // clear the current promise so we can make another request + // this should happen regardless of whether the request was successful or not + this.currentPromise = null + }) + return bucketedConfig } }