Skip to content

Allow evaluating feature flags with groups #2012

Open
@SferaDev

Description

@SferaDev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions