https://www.growthbook.io/ logo
r

ripe-oyster-41378

06/06/2023, 9:46 AM
Hi everyone, i am using useFeature() hook and i dont know why i am getting feature.source = defaultValue and already write some override rule and i check in context of growthbook growthbook is sending experiment result but inExperiment is returning false.
f

fresh-football-47124

06/06/2023, 2:15 PM
What is the feature rule?
if this is a website, you can also use our Chrome extension to help you debug
r

ripe-oyster-41378

06/07/2023, 5:14 AM
i checked in chrome extension its showing feature in experiments but
const feature = useFeature("feature_name");
console.log(feature.source) // deafultValue
console.log(feature.value) // {} is default value
f

fresh-football-47124

06/07/2023, 7:06 AM
is it perhaps setting the hashed attribute after you’re calling useFeature?
1
How are you setting the deviceId?
r

ripe-oyster-41378

06/07/2023, 7:49 AM
yes
ok let me check setting hashed attribute things
2 Views