Closed marandaneto closed 1 month ago
Size Change: +363 B (+0.35%)
Total Size: 105 kB
Filename | Size | Change |
---|---|---|
posthog-react-native/lib/posthog-core/src/index.js |
9.68 kB | +43 B (+0.45%) |
posthog-web/lib/index.cjs.js |
17.1 kB | +160 B (+0.94%) |
posthog-web/lib/index.esm.js |
17 kB | +160 B (+0.95%) |
logic looks correct for the goal... just the open "product" question for me. once we know the canonical answer we should update posthog.com/docs/feature-flags/bootstrapping (which assumes i'm not the only person that would make the same assumption 🙈)
I think its correct already:
To have your feature flags available immediately, you can initialize PostHog with precomputed values until it has had a chance to fetch them. This is called bootstrapping.
that means, after having the chance to fetch them, use the fetched values and not the bootstraped values anymore, which is what this fix does.
259 (files)
Special only to these 2, those are unique identifiers per installation or until the user identify
or reset
.
eg bootstrap with distinctId
A, then the user calls identify
with distinctId
B, the app restarts, and the distinctId
should still be B
and not the bootstrapped A
anymore because the user already identified.
Problem
https://posthoghelp.zendesk.com/agent/tickets/17685
Changes
bootstrap values are always overwriting everything even if there are new values cached
Release info Sub-libraries affected
Bump level
Libraries affected
Changelog notes