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.
Optional
contextA LaunchDarkly context object. If unspecified, an anonymous context with kind: 'user' will be created and used.
Optional
deferIf set to true, the ldClient will not be initialized until the context prop has been defined.
Optional
flagsIf 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.
Optional
ldOptionally, the ldClient can be initialised outside of the provider and passed in, instead of being initialised by the provider. Note: it should only be passed in when it has emitted the 'ready' event, to ensure that the flags are properly set.
Optional
optionsLaunchDarkly initialization options. These options are common between LaunchDarkly's JavaScript and React SDKs.
https://docs.launchdarkly.com/sdk/features/config#javascript
Optional
reactAdditional initialization options specific to the React SDK.
options
Optional
timeoutThe 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.
Optional
userThe user
property will be removed in a future version,
please update your code to use context instead.
Generated using TypeDoc
Configuration object used to initialise LaunchDarkly's JS client.