https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

full-kitchen-78538

12/17/2022, 1:50 PM
Hey growthbook team, I have an issue where the function useFeature('feature-name').on is always returning the default value. this persists until I refresh the page, then it returns the correct value. Any idea why this might be happening? Im using react btw.
f

fresh-football-47124

12/17/2022, 5:22 PM
are you updating the attributes after growthbook loads?
f

full-kitchen-78538

12/19/2022, 4:01 PM
Hi I was able to fix, it was a problem on my side, I was not updating growthbook after sign in, so the user id never got assigned into the experiment
8 Views