react-client-sdk icon indicating copy to clipboard operation
react-client-sdk copied to clipboard

LaunchDarkly client was initialized with bootstrap data that did not include flag metadata.

Open ImLunaHey opened this issue 1 year ago • 2 comments
trafficstars

Is this a support request? no

Describe the bug LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. warnings are logged when passing in manual flags.

To reproduce

const flags = {
	aFlag: true
};
export const FeatureFlagProvider = ({ children }: { children: React.ReactNode }) => (
  <LDProvider
    clientSideID={launchDarklyClientId}
    deferInitialization={!launchDarklyClientId}
    options={{
      bootstrap: flags,
    }}
  >
    <OrgIDIdentifier>{children}</OrgIDIdentifier>
  </LDProvider>
);

Expected behavior No warning/error logged.

Logs

LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly. Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.

SDK version

3.4.0

Language version, developer tools N/A

OS/platform N/A

Additional context N/A

ImLunaHey avatar Oct 24 '24 03:10 ImLunaHey