Skip to content

Documentation is invalid #36

@illegalnumbers

Description

@illegalnumbers

https://docs.launchdarkly.com/sdk/client-side/vue#retrieving-flag-values-with-the-client This documentation is invalid.

Clearly, from this https://github.com/launchdarkly/vue-client-sdk/blob/main/src/hooks.ts#L28 call, you cannot use

import { useLDClient } from 'launchdarkly-vue-client-sdk'
const ldClient = useLDClient() <-- will throw an exception
const allFlags = ldClient.allFlags()``` outside of a component.

This is clearly wrong.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions