This message was deleted.
# sdk-react
w
This message was deleted.
g
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?