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 ec15d2c commit d35663bCopy full SHA for d35663b
src/storages/inLocalStorage/SplitsCacheInLocal.ts
@@ -206,6 +206,9 @@ export class SplitsCacheInLocal extends AbstractSplitsCacheSync {
206
const flagSetFromStorage = this.storage.getItem(flagSetKey);
207
208
const flagSetCache = new Set(flagSetFromStorage ? JSON.parse(flagSetFromStorage) : []);
209
+
210
+ if (flagSetCache.has(featureFlag.name)) return;
211
212
flagSetCache.add(featureFlag.name);
213
214
this.storage.setItem(flagSetKey, JSON.stringify(setToArray(flagSetCache)));
0 commit comments