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

colossal-alligator-31194

07/10/2023, 8:56 AM
Hi again everyone. I have a question about a behaviour in GB. I'm using it in a react app and I used some cookie value for
id
. It means whenever I change cookie value I expect the new assignment ( a/b experiment ). So I noticed whenever the assignment happens I have the following logs. (below) Now my question is, don't we load the features initially and then re use them here? and why do we have the null values every time the assignment happens ?
Copy code
const feature = useFeature('test');

console.log(feature)

//======== Result
{value: null, on: false, off: true, source: 'unknownFeature', ruleId: ''}
{value: null, on: false, off: true, source: 'unknownFeature', ruleId: ''}
{value: 'grey', on: true, off: false, source: 'experiment', ruleId: '', …}
20 Views