diff --git a/package.json b/package.json index 8645ed33..5f10e276 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eppo/js-client-sdk-common", - "version": "3.0.7", + "version": "3.0.8", "description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", "main": "dist/index.js", "files": [ diff --git a/src/client/eppo-client.ts b/src/client/eppo-client.ts index a8d37962..4e940f09 100644 --- a/src/client/eppo-client.ts +++ b/src/client/eppo-client.ts @@ -87,6 +87,8 @@ export interface IEppoClient { configurationRequestParameters: FlagConfigurationRequestParameters, ): void; + setConfigurationStore(configurationStore: IConfigurationStore): void; + fetchFlagConfigurations(): void; stopPolling(): void; @@ -140,6 +142,10 @@ export default class EppoClient implements IEppoClient { this.configurationRequestParameters = configurationRequestParameters; } + public setConfigurationStore(configurationStore: IConfigurationStore) { + this.configurationStore = configurationStore; + } + public async fetchFlagConfigurations() { if (!this.configurationRequestParameters) { throw new Error(