@launchdarkly/react-sdk - v4.2.3
    Preparing search index...

    Function useBoolVariation

    • Returns the boolean variation of a feature flag.

      Parameters

      • key: string

        The feature flag key.

      • defaultValue: boolean

        The value to return if the flag is not available.

      • OptionalreactContext: Context<LDReactClientContextValue>

        Optional React context to read from. Defaults to the global LDReactContext.

      Returns boolean

      The boolean flag value, or defaultValue if the flag is unavailable.