Whether to send flag evaluation events when a flag is read from the
returned by the
useFlags hook. This is true by default, meaning flag evaluation
events will be sent by default.
Whether the React SDK should transform flag keys into camel-cased format. Using camel-cased flag keys allow for easier use as prop values, however, these keys won't directly match the flag keys as known to LaunchDarkly. Consequently, flag key collisions may be possible and the Code References feature will not function properly.
This is true by default, meaning that keys will automatically be converted to camel-case.
For more information, see the React SDK Reference Guide on flag keys.
Generated using TypeDoc
LDProvideris a component which accepts a config object which is used to initialize
This Provider does three things:
launchdarkly-js-client-sdkin only initialized on
componentDidMount, your flags and the ldClient are only available after your app has mounted. This can result in a flicker due to flag changes at startup time.
This component can be used as a standalone provider. However, be mindful to only include the component once within your application. This provider is used inside the
withLDProviderHOCand can be used instead to initialize the
launchdarkly-js-client-sdk. For async initialization, check out the