LDPluginOptions: {
    clientSideID?: string;
    context?: LDContext;
    deferInitialization?: boolean;
    options?: LDOptions;
    streaming?: boolean;
    user?: LDContext;
}

Type declaration

  • OptionalclientSideID?: string

    Indicates which LaunchDarkly project to use. Must be provided here or in a call to ldInit for the SDK to work.

  • Optionalcontext?: LDContext

    A LaunchDarkly context object. If unspecified, an anonymous context with kind: 'user' will be created and used.

  • OptionaldeferInitialization?: boolean

    Defers initialization of the LaunchDarkly client until ldInit is called explicitly.

    false

  • Optionaloptions?: LDOptions

    Options to pass to the underlying javascript SDK.

  • Optionalstreaming?: boolean

    Enables or disables automatically subscribing to live updates to flags referenced using useLDFlag.

    true

  • Optionaluser?: LDContext

    The user property will be removed in a future version, please update your code to use context instead.