bitter-advantage-42714
08/12/2023, 12:23 AMloadFeatures()
method when first loading the app.
6. There's no subsequent or initial fetch request or SSE subscription.
We expect the SDK to automatically fetch the state of the features once the cache goes stale. Please correct my expectations if this differs from the intended behavior or if our setup needs something else.
Setup:
• @growthbook/growthbook-react
• React 18
• Calling loadFeatures()
with no parameters
• Self-hosted Growthbook platform
• SSE enabled through HTTP response headers
• Simple setup with just 1 feature flag, no experiments yet
I'm aware that we can refresh the features ourselves. If this is the intended behavior, I am considering refreshing the features once the cache becomes stale or upon page navigation. Please feel free to suggest other methods for solving this problem. Thanks!helpful-application-7107
08/14/2023, 4:26 PM