the new client instance
NOTE: We recommend using createLDProvider or the LDVuePlugin instead of this function if you can.
This factory is provided to allow the caller to own the client lifecycle. When using this function, the caller is responsible for:
client.start() before or after mounting.Refer to createLDProviderWithClient for the default behavior.
import { createClient } from '@launchdarkly/vue-client-sdk';
const client = createClient('your-client-side-id', { kind: 'user', key: 'user-key' });
await client.start();
Generated using TypeDoc
Creates a new instance of the LaunchDarkly client for Vue.