Skip to content

Commit d208b74

Browse files
committed
only return true for __DEV__ mode
1 parent d3641f8 commit d208b74

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/app-config/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {getFeatureFlag} from '../../source/lib/storage'
22
import {AppConfigKey, AppConfigGroupKey, FeatureFlagType} from './types'
33
import {useQuery} from '@tanstack/react-query'
4+
import {isDevMode} from '@frogpond/constants'
45

56
export type {AppConfigKey, FeatureFlagType} from './types'
67

@@ -26,6 +27,10 @@ const useFeature = (featureKey: AppConfigKey): boolean => {
2627
},
2728
})
2829

30+
if (!isDevMode()) {
31+
return false
32+
}
33+
2934
return featureValue
3035
}
3136

0 commit comments

Comments
 (0)