Hi. I have a question. I want to setup an experime...
# ask-questions
l
Hi. I have a question. I want to setup an experiment, where, based on a criteria the user will have a chance to see the new feature. So basically i need to set the user attributes later on. However, when i do it and and attempt to show the feature i see the "Skip because missing hashAttribute" error, even though i have the user attributes set. Is there anything else i need to do in order to make it work?
f
What attribute are you using for assignment in the experiment?
l
I am setting them inside a useEffect
Copy code
useEffect(() => {
		if (!growthbook && !uid) return;

		growthbook
			?.setAttributes({
				uid,
			})
			.then(() => {
				console.log('uid set', uid);
			});
	}, [growthbook, uid]);
With this question you just gave me the answer. I was setting a wrong attribute 🙈. It was waiting for 'id', and i named it 'uid'. silly mistake
f
cool, glad its sorted
🙌 1