Skip to content
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_flag_called should be triggered again for an already trigged flag if there are new values #211

Open
2 tasks
marandaneto opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working Feature flags

Comments

@marandaneto
Copy link
Member

marandaneto commented Oct 11, 2024

Version

Latest

Steps to Reproduce

Relates to PostHog/posthog-js-lite#281
Read a flag
Reload flags
Read a flag
$feature_flag_called is captured only the first time is called, but not the 2nd which is fine when the result doesn't change, but if it does, it should be triggered.
Since we don't keep track of the results, we just clear the Set that check if flags were captured or not after the flags are reloaded.

The very same issue happens on Android

  • Android
  • iOS

Expected Result

$feature_flag_called event is captured again with the new value

Actual Result

$feature_flag_called event isn't captured again

@marandaneto marandaneto added bug Something isn't working Feature flags labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Feature flags
Projects
None yet
Development

No branches or pull requests

1 participant