Your project and environment specific client side ID. You can find this in your LaunchDarkly portal under Account settings. This is the only mandatory property required to use the React SDK.
OptionalcontextA LaunchDarkly context object. If unspecified, an anonymous context with kind: 'user' will be created and used.
OptionaldeferIf set to true, the ldClient will not be initialized until the context prop has been defined.
OptionalflagsIf specified, launchdarkly-react-client-sdk will only listen for changes to these flags.
Otherwise, all flags will be requested and listened to.
Flag keys must be in their original form as known to LaunchDarkly rather than in their camel-cased form.
OptionalldOptionally, the ldClient can be initialized outside of the provider and passed in, instead of being initialized by the provider.
Note: it should only be passed in when it has emitted the 'ready' event when using withLDProvider, to ensure that the flags are properly set. If using with asyncWithLDProvider, then it will wait internally, so it is not required that the client have emitted the 'ready' event.
OptionaloptionsLaunchDarkly initialization options. These options are common between LaunchDarkly's JavaScript and React SDKs.
OptionalreactAdditional initialization options specific to the React SDK.
OptionaltimeoutThe amount of time, in seconds, to wait for initialization before rejecting the promise.
Using a large timeout is not recommended. If you use a large timeout and await it, then
any network delays will cause your application to wait a long time before continuing
execution. This gets passed to the underlying Javascript SDK waitForInitialization
function.
Optionaluser
Configuration object used to initialise LaunchDarkly's JS client.