We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3641f8 commit d208b74Copy full SHA for d208b74
modules/app-config/index.tsx
@@ -1,6 +1,7 @@
1
import {getFeatureFlag} from '../../source/lib/storage'
2
import {AppConfigKey, AppConfigGroupKey, FeatureFlagType} from './types'
3
import {useQuery} from '@tanstack/react-query'
4
+import {isDevMode} from '@frogpond/constants'
5
6
export type {AppConfigKey, FeatureFlagType} from './types'
7
@@ -26,6 +27,10 @@ const useFeature = (featureKey: AppConfigKey): boolean => {
26
27
},
28
})
29
30
+ if (!isDevMode()) {
31
+ return false
32
+ }
33
+
34
return featureValue
35
}
36
0 commit comments