Interface LDIsomorphicClientProviderProps

Hierarchy

  • LDIsomorphicClientProviderProps

Properties

bootstrap: unknown

Bootstrap data from the server. Pass the result of flagsState.toJSON() obtained from LDServerSession.allFlagsState on the server.

Remarks

NOTE: This interface is meant to be used with the server component LDIsomorphicProvider. If you are looking to providing your own bootstrap data, you should use the createLDReactProvider function directly.

children: ReactNode
clientSideId: string

The LaunchDarkly client-side ID.

context: LDContext

The initial context to identify with.

options?: Omit<LDReactProviderOptions, "bootstrap" | "reactContext">

Additional options forwarded to createLDReactProvider.

Remarks

The omitted fields are hoisted to top level options because they are not serializable across the RSC boundary.

reactContext?: Context<LDReactClientContextValue>

Optional custom React context for the LaunchDarkly client. Use this when you need multiple LaunchDarkly client instances in the same application.

Generated using TypeDoc