more tweaks
This commit is contained in:
@@ -16,14 +16,14 @@ import {Gate} from './gates'
|
|||||||
|
|
||||||
const SDK_KEY = 'client-SXJakO39w9vIhl3D44u8UupyzFl4oZ2qPIkjwcvuPsV'
|
const SDK_KEY = 'client-SXJakO39w9vIhl3D44u8UupyzFl4oZ2qPIkjwcvuPsV'
|
||||||
|
|
||||||
export const initPromise = initialize()
|
|
||||||
|
|
||||||
export const StatsigClient = new StatsigClientExpo(
|
export const StatsigClient = new StatsigClientExpo(
|
||||||
SDK_KEY,
|
SDK_KEY,
|
||||||
{},
|
{},
|
||||||
createStatsigOptions([]),
|
createStatsigOptions([]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
export const initPromise = initialize()
|
||||||
|
|
||||||
type StatsigUser = {
|
type StatsigUser = {
|
||||||
userID: string | undefined
|
userID: string | undefined
|
||||||
// TODO: Remove when enough users have custom.platform:
|
// TODO: Remove when enough users have custom.platform:
|
||||||
@@ -67,7 +67,10 @@ function createStatsigOptions(prefetchUsers: StatsigUser[]) {
|
|||||||
initTimeoutMs: 1,
|
initTimeoutMs: 1,
|
||||||
// Get fresh flags for other accounts as well, if any.
|
// Get fresh flags for other accounts as well, if any.
|
||||||
prefetchUsers,
|
prefetchUsers,
|
||||||
api: 'https://events.bsky.app/v2',
|
loggingBufferMaxSize: 3,
|
||||||
|
networkConfig: {
|
||||||
|
//api: 'https://events.bsky.app/v3',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,7 +257,7 @@ export async function tryFetchGates(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function initialize() {
|
export function initialize() {
|
||||||
StatsigClient.initializeAsync()
|
return StatsigClient.initializeAsync()
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isStatsigInitialized() {
|
export function isStatsigInitialized() {
|
||||||
|
|||||||
Reference in New Issue
Block a user