This message was deleted.
# give-feedback
w
This message was deleted.
w
m
Yes I have used a fallback UI
w
Try calling
const enabled = useFeatureIsOn("new-pricing")
from within the PricingPage itself, instead of passing it in as a prop. As you have it now the enabled variable is loading from outside the FeaturesReady logic.
m
I have tried calling useFeatureIsOn in the PricingPage component but the issue persists
w
and you changed the code to use it and got rid of the prop?
You can set
gb.debug=true
on your growthbook object to see console logs of how gb evaluates your feature. That might help you in understanding what is going on.
f
It could be caused by a delay when loading the attributes…
There are some ways around this
one would be to initially not load a price at all, then load in the price based on which variation is loaded - it will flicker, but may just look like loading
it looks like it is assigning a variation, then switching variations (instead of loading the spinner) - which can happen if the attributes change
m
Is there any way to load variations on the server and serve the pricing page with variations? It will help improve user experience
f
sure
m
ok thanks, @fresh-football-47124 for your support, I am working on rendering variations server-side
thanks @white-fireman-22476 for sorting your support
f
you just have to log that exposure event, doesn’t have to happen client side or server side - but has to happen somewhere
140 Views