Open
Description
We don't want to call group()
in a global scope, instead in each feature flag evaluation context send whatever groups we think are necessary to be included. Other SDKs (go and posthog-js-lite) allow to send them per feature flag evaluation, but posthog-js doesn't.
useFeatureFlagEnabled(flag, { groups: { organization });
posthog.getFeatureFlag(flag, { groups: { organization });
Metadata
Metadata
Assignees
Labels
No labels