Quick Question. How well does Growthbook support ...
# ask-questions
m
Quick Question. How well does Growthbook support offline clients? Is there a clean fallback mechanism if we can't request the feature toggle state?
w
Yes we fallback to the latest value that has been cached. If none have been cached then it falls back to the fallback listed in your code.
For example:
Copy code
// String/Number/JSON Feature Flag with a fallback
var value = gb.getFeatureValue("button-color", "blue")
if they are offline and nothing has been cached then value would be "blue".
m
Fantastic, thank you. Looks like exactly what we need