mirror of
https://github.com/Mail-0/Zero.git
synced 2026-06-28 14:56:48 +00:00
Add decide method for feature gate creation
This commit is contained in:
@@ -12,4 +12,7 @@ export const createFeatureGate = (key: string) => flag<boolean, StatsigUser>({
|
||||
key,
|
||||
adapter: statsigAdapter.featureGate((gate) => gate.value, { exposureLogging: true }),
|
||||
identify,
|
||||
decide() {
|
||||
return Math.random() > 0.1;
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user