Hi all,
I'm working on getting GrowthBook integrated into a React Js application to get rid of our current solution. I've got the initialisation working in the
App.js
file but I have a redux reducer where I'm attempting to setAttributes on a user any time an update happens to the user within our application. I have a few questions...
• Is this possible? The reason I'm doing this is we have some features which are enabled for certain groups of people. ie. internal features only enabled for users with certain emails/company information on their client data.
• When i set the attributes they dont get updated on the attributes screen here
https://app.growthbook.io/attributes is there something I'm doing wrong?
• The Chrome plugin for Growthbook doesn't seem to be working, do I need any setup in order to get this going?
• Is there somewhere that I can have a development SDK key and a production SDK key, reason being for testing tickets in a development environment with flags and then passing them through or duplicating them into prod.
• I'd love to move to a paid plan but can I trial this first?
Appreciate the help in advance!
Here's the code I'm using in the reducer in order to try and set the client attributes.
reducers: {
setClientData: (state, action) => {
console.log("Updating growthbook data with", action.payload)
growthbook.setAttributes({
"id": fire.auth().currentUser.uid,
...action.payload,
});
state.data = action.payload;
},
} ...