Send beta user state with AppView requests (#11474)

This commit is contained in:
DS Boyce
2026-08-18 09:50:15 -07:00
committed by GitHub
parent 45aa1a67b0
commit cc3622b583
7 changed files with 159 additions and 22 deletions
+3 -4
View File
@@ -98,10 +98,9 @@ export type Account = {
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.
* Persistent cold-start snapshot of `bskyAppState.isBetaUser`. Hydrates the
* runtime cache so the GrowthBook attribute and request header are available
* synchronously before preferences load. 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