the LaunchDarkly client-side ID
the initial LaunchDarkly context
optional provider and client options
import { createLDProvider } from '@launchdarkly/vue-client-sdk';
import { createApp, h } from 'vue';
import App from './App.vue';
const LDProvider = createLDProvider('your-client-side-id', { kind: 'user', key: 'user-key' });
createApp({
render: () => h(LDProvider, null, { default: () => h(App) }),
}).mount('#app');
Generated using TypeDoc
Creates a LaunchDarkly provider component, creating the client internally.
By default the client starts immediately (before the provider mounts). Pass
deferInitialization: truein options to opt out of auto-start and callclient.start()yourself via useLDClient.