launchdarkly-react-client-sdk - v3.9.0
    Preparing search index...

    Interface ReactSdkContext

    The sdk context stored in the Provider state and passed to consumers.

    interface ReactSdkContext {
        error?: Error;
        flagKeyMap: LDFlagKeyMap;
        flags: LDFlagSet;
        ldClient?: LDClient;
    }
    Index

    Properties

    error?: Error

    LaunchDarkly client initialization error, if there was one.

    flagKeyMap: LDFlagKeyMap

    Map of camelized flag keys to their original unmodified form. Empty if useCamelCaseFlagKeys option is false.

    flags: LDFlagSet

    JavaScript proxy that will trigger a LDClient#variation call on flag read in order to register a flag evaluation event in LaunchDarkly. Empty {} initially until flags are fetched from the LaunchDarkly servers.

    ldClient?: LDClient

    An instance of LDClient from the LaunchDarkly JS SDK (launchdarkly-js-client-sdk). This will be be undefined initially until initialization is complete.