https://www.growthbook.io/ logo
Join Slack
Powered by
# sdk-vue-js
  • l

    little-camera-7128

    08/09/2024, 10:01 AM
    Hi all, I’m new to GrowthBook, and trying it out as a proof of concept in a Nuxt 3 app. I’ve setup things mostly according to the Vue 3 SDK docs. I have the feature flags coming in and can see them in the
    payload
    . 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:
    Copy code
    ...
    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.