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

enough-psychiatrist-93313

03/22/2023, 7:18 PM
does calling growthbook.setAttributes erase the old attributes and sets the new ones or is just adding the new attributes on top of the old ones?
f

fresh-football-47124

03/22/2023, 7:20 PM
it overwrites the existing attributes
if you want to add, you have to do something like setAttributes({…getAttributes(), new: value, });
e

enough-psychiatrist-93313

03/22/2023, 7:49 PM
got it. thx @fresh-football-47124