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

feat(feature-flags): Enable bootstrapping the library #444

Merged
merged 7 commits into from
Sep 12, 2022
Merged

Conversation

neilkakkar
Copy link
Contributor

@neilkakkar neilkakkar commented Sep 7, 2022

Changes

Allows for initialising the library with a distinctID, and/or feature flags as well. This id is treated as an anonymous ID, unless you explicitly say that it's not.

This allows for immediate flag availability on load, and makes possible to do things like: redirect pages based on feature flags (which wouldn't have been possible earlier, since the flags take some time to load)

@mariusandra , @Twixes , have a look here for how I expect this to be used: PostHog/posthog#11704 -> just a PoC, to help review this PR, if you want interface changes, etc. etc.

...


Tested by running locally with the PoC PR, see everything works as expected.

Checklist

Copy link
Member

@EDsCODE EDsCODE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accompanying docs? See it!

@neilkakkar neilkakkar added the bump minor Bump minor version when this PR gets merged label Sep 12, 2022
@neilkakkar neilkakkar merged commit f661530 into master Sep 12, 2022
@neilkakkar neilkakkar deleted the bootstrap branch September 12, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump minor Bump minor version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants