little-camera-7128
08/09/2024, 10:01 AMpayload
. However, we I call growthbook.isOn
and growthBook.getFeatureValue
on the feature flags which are in the payload - it returns the fallback value instead of the actual value in the payload.
I’ve screenshot the console logs and here is the code related to that:
...
console.log('GrowthBook Initialized', growthBook.getPayload())
const isOn = growthBook.isOn('poc-homepage-test')
console.log('PoC Test Feature Flag Is On', isOn)
const pocTest = growthBook.getFeatureValue('poc-homepage-test-string', null)
console.log('poc-homepage-test-string Flag Value', pocTest)
Anyone have any idea why isOn
and getFeatureValue
aren’t return what is actually in the response?
(Just let me know if this is not the right place to post such a question). Thanks.