Second brain for knowledge workers that retains everything you read online and helps you to back up your communication with your source as easily as you might share an anecdote over a coffee.
MIT License
2
stars
2
forks
source link
make content & popup wait for feature flags init & release 0.6.33 #866
Feature flags are not ready to be accessed immediately on instantiation of PostHog - they get fetched asynchronously. By default that makes them unreliable during initialisation.
This PR gives the callers of armoury.productanalytics.make() and option to wait for feature flags to be fully ready. It is built on top of PostHog.onFeatureFlags under the hood.
Content & popup do not proceed with their init until this new condition is met, truthsayer does not because init doesn't happen in async context which made it harder to add.
Feature flags are not ready to be accessed immediately on instantiation of
PostHog
- they get fetched asynchronously. By default that makes them unreliable during initialisation.This PR gives the callers of
armoury.productanalytics.make()
and option to wait for feature flags to be fully ready. It is built on top ofPostHog.onFeatureFlags
under the hood.Content & popup do not proceed with their init until this new condition is met, truthsayer does not because init doesn't happen in
async
context which made it harder to add.