-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Flags: option to fully control when the feature flags are reloaded #272
Comments
Hello @theop-luma
Previously we were not doing this but we noticed that every user was combining a call to What is the use case that you need control over reloading flags after identify or reset? Thanks. |
I see... the reason we'd prefer having full control is:
Not really urgent requests, but more about quality of life I'd say. |
That said, I understand the use case now but we'd need to drop support for iOS 13 and 14 first. |
Another option is to have a callback called when flags are reloaded, you can set this callback during SDK init, instead of the notification center, would that help? |
Problem Statement
Currently,
PostHogConfig
has apreloadFeatureFlags
property which if you switch to false, doesn't load the feature flags during initialsetup
. This doesn't seem to stop however the feature flags being reloaded later when the user is first identified inidentify
or the session isreset
. In those casesreloadFeatureFlags
is called sinceshouldReloadFlagsForTesting
seems to always betrue
.Solution Brainstorm
It would be really good if we could fully control when these flags are reloaded, to make sure we schedule it at a convenient time for the app.
The text was updated successfully, but these errors were encountered: