From 1be08d4b118b474a20b3b3b008ef113c9b1f7e27 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Thu, 12 Dec 2024 15:01:59 +0200 Subject: [PATCH] fix: do not initialize cache when flag is off --- .../cache/createClientFeatureToggleCache.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/features/client-feature-toggles/cache/createClientFeatureToggleCache.ts b/src/lib/features/client-feature-toggles/cache/createClientFeatureToggleCache.ts index e315594346c0..b49c21361646 100644 --- a/src/lib/features/client-feature-toggles/cache/createClientFeatureToggleCache.ts +++ b/src/lib/features/client-feature-toggles/cache/createClientFeatureToggleCache.ts @@ -27,6 +27,7 @@ export const createClientFeatureToggleCache = ( featureToggleClientStore, eventStore, configurationRevisionService, + flagResolver, ); return clientFeatureToggleCache;