Add a dialog for debugging feature flags to developer settings (#10988)

This commit is contained in:
DS Boyce
2026-07-29 16:49:32 -07:00
committed by GitHub
parent 91517af01c
commit 0be8b1dd93
3 changed files with 228 additions and 3 deletions
+2 -2
View File
@@ -40,6 +40,7 @@ const TIMEOUT_PREFER_FRESH_GATES = 1500
export const features = new GrowthBook({
apiHost: env.GROWTHBOOK_API_HOST,
clientKey: env.GROWTHBOOK_CLIENT_KEY,
enableDevMode: env.IS_INTERNAL,
})
/**
@@ -59,8 +60,7 @@ export const init = features.init({timeout: TIMEOUT_INIT}).then(res => {
})
/**
* Refresh feature gates from GrowthBook. Updates attributes based on the
* provided account, if any.
* Refresh feature gates from GrowthBook.
*/
export async function refresh({strategy}: {strategy: FeatureFetchStrategy}) {
await features.refreshFeatures({