stocky-nest-15851
07/18/2023, 3:22 PMuseEffect(() => {
growthbook.loadFeatures({autoRefresh: true});
}, []);
do it, doesn't it?swift-helmet-3648
07/18/2023, 6:13 PMWe still haven't rolled out realtime streaming support to all of our GrowthBook Cloud users yet. That's coming within the next couple weeks. Self-hosted users can enable it today by using the GrowthBook Proxy.
For Cloud users, thesetting will not do anything today. We tell people to add it now so that they are ready to take advantage of realtime streaming when it's released soon.autoRefresh
If the person wants to force a refresh (e.g. on navigation in a SPA), there's amethod they can call on the SDK. It has some debounce logic to avoid a bunch of rapid fire API calls (only hits the CDN if it's been at least 60 seconds since we last fetched). That can be disabled if needed by doingrefreshFeatures
, but we don't recommend it unless the person really knows that they are doing.gb.refreshFeatures({skipCache: true}}