bland-soccer-81127
10/19/2022, 2:32 PMfuture-teacher-7046
growthbook.getFeatures()
? That should return all of the features loaded into the SDKbland-soccer-81127
10/19/2022, 2:37 PMfuture-teacher-7046
getFeatures()
it returns an empty object? Is there anywhere else in your code that is calling setFeatures()
? Are you sure it's the exact same instance of GrowthBook and you aren't creating multiple ones?busy-horse-73824
10/19/2022, 2:42 PMgrowthbook.evalFeature("feature_id")
But your feature is hide-element
, not feature_id
Or were you actually logging:
growthbook.evalFeature("hide-element")
bland-soccer-81127
10/19/2022, 2:52 PMgetFeatures()
returns an empty object.
I'm calling the setFeatures()
only oncefuture-teacher-7046
setFeatures()
inside of an async callback. Is it possible when you log getFeatures()
it's before the fetch is done?bland-soccer-81127
10/19/2022, 3:04 PM