Tweak config

This commit is contained in:
Eric Bailey
2024-12-17 11:53:51 -06:00
parent 8a5fbff52c
commit 1af176040f
+5 -1
View File
@@ -19,6 +19,10 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
// refetches at most every minute
const {data: config, isLoading: isInitialLoad} = useServiceConfigQuery()
const ctx = React.useMemo<Context>(() => {
if (__DEV__) {
return {enabled: true}
}
/*
* Only English during beta period
*/
@@ -51,7 +55,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
/*
* Service is enabled, but also check statsig in case we're rolling back.
*/
const gateEnabled = __DEV__ || gate('trending_topics_beta')
const gateEnabled = gate('trending_topics_beta')
const _enabled = enabled && gateEnabled
// update cache