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
we have a case when we change a user properties which are used to set feature flag states. in this case, docs states to use reloadFeatureFlags. however, while change happens cached flags are still used. we use vue, and this cache change is not reactive, so if the flag is used in rendering: incorrect state will be displayed until page is reloaded. if there a way around this? could reloadFeatureFlags be async so it can be simply awaited?
until v1.211.3 we could wait until featureFlags.reloadFeatureFlagsInAction, but currently props are changed for _requestInFlight and marked as private, so there seem to be no way of waiting for reload request.
The text was updated successfully, but these errors were encountered:
I have the same issue - there definitely needs to be something for awaiting reloads of feature flags. Code like this doesnt work due to race condition right now: posthog.setPersonPropertiesForFlags({ xyzProperty: true }); const value = posthog.getFeatureFlag("xyz-flag");
we have a case when we change a user properties which are used to set feature flag states. in this case, docs states to use reloadFeatureFlags. however, while change happens cached flags are still used. we use vue, and this cache change is not reactive, so if the flag is used in rendering: incorrect state will be displayed until page is reloaded. if there a way around this? could
reloadFeatureFlags
beasync
so it can be simply awaited?until v1.211.3 we could wait until
featureFlags.reloadFeatureFlagsInAction
, but currently props are changed for_requestInFlight
and marked as private, so there seem to be no way of waiting for reload request.The text was updated successfully, but these errors were encountered: