You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the decide API is called, update the values of the feature flags in the disk
Always read the cached feature flags if the decide API has not finished yet, e.g. during SDK init.
Consider maintaining a mirror of the feature flags in memory to avoid all the IO of reading flags every time (the caching and reading should be synchronized though.)
Description
https://github.com/PostHog/posthog-js-lite/blob/4a707fdc660785c187e0bfd99ec2df1887afcf5c/posthog-core/src/index.ts#L955-L963
Worth noting that the Android SDK v2 also didn't cache the feature flags: just in memory.
The text was updated successfully, but these errors were encountered: