Hi team, I'm running a critical experiment on my ...
# sdk-react
g
Hi team, I'm running a critical experiment on my company's homepage & have encountered a bug. I've raised it on Github. Can someone assist me with this issue? https://github.com/growthbook/growthbook/issues/2594 Thanks
Hey @brief-honey-45610, Can you help here?
@fresh-football-47124 I would appreciate your support here. We (Spinny) are on Pro membership yet we haven't got the support for this.
b
Thanks, Rishav, I will post this for our engineers to take a look
Posted, just waiting for someone to take a look
g
Thanks
Any update on this? This is leading to a bad experience for our users! Are there any workarounds?
The lack of response is quite disappointing. Should I assume that the SDK might not be implemented correctly?
f
Hi Rishav
sorry for the delay
didn't see your replies
I think you might need a useEffect hook to update GrowthBook with the state changes on the front end
g
I don't quite understand this. The issue is that
useFeatureIsOn
is called before Growthbook has loaded, so it returns
undefined
. I expect it to automatically return an updated value once Growthbook has loaded, but the hook isn't reactive currently. Since it's a custom hook, it can only be called at the root level and not inside a function or lifecycle method.
f
Were you able to see the comments on this PR?