agreeable-parrot-71961
02/06/2024, 8:17 AMsalmon-dress-34772
02/06/2024, 10:22 AMconst featureOn = useFeatureIsOn('featureId')
const activeVariation = useExperimentGrowth({key and variations})
if(featureOn ) {
experiment view
} else {
control
}
On UI its visible correctly and is shown only to users with featureOn, but trackingCallback
is triggered even when feature is off
Checked further and in logs found that callback is triggered at call of hook useExperiment
and since its hook it has to be called at top level.
Can you please help in this how to stop the callback when feature is off? Is there any parameter we need to pass to useExperiment
to tell that feature is offagreeable-parrot-71961
02/07/2024, 7:47 AMagreeable-parrot-71961
02/08/2024, 4:39 AMsalmon-dress-34772
02/09/2024, 6:44 AM