Add setting for opting in to beta features (#11123)

This commit is contained in:
DS Boyce
2026-07-15 06:06:54 -07:00
committed by GitHub
parent d7f40b7e7f
commit 3c5c11c002
20 changed files with 685 additions and 90 deletions
+12
View File
@@ -91,4 +91,16 @@ export type Account = {
* Recently selected GIFs in the GIF picker. Most recent first, capped at 20.
*/
recentGifs?: Gif[]
/**
* Cached from preferences (`bskyAppState.isBetaUser`) so the GrowthBook
* `isBetaUser` attribute can be set synchronously at analytics init, before
* beta-gated features (e.g. SearchV2Enable) are first evaluated. Written back
* when preferences load.
*
* Scoped per account, since `isBetaUser` is account-specific preference data.
* Reading it globally would let a beta account's value leak into a non-beta
* account after a switch, until that account's preferences loaded.
*/
isBetaUser?: boolean
}