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

LaunchDarkly Client-side SDK for React.js

Results 55 react-client-sdk issues
Sort by recently updated
recently updated
newest added
trafficstars

**Is your feature request related to a problem? Please describe.** Current initialisation is done by HOC and/or functions what generate the provider component for you. In some setups this can...

enhancement

**Describe the bug** When importing `ReactSdkContext` into my app I receive an error message and the build fails: `Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export...

I have an Expo React Native project I want to use LaunchDarkly with. However, at the moment the only build target we're using is web, using react-native-web. It's unclear to...

**Is this a support request?** No **Describe the bug** The type declaration of `withLDProvider` throws TS errors about not having anything in common with `IntrinsicAttributes`. Looking at the source code,...

**Describe the bug** If a parent of `` re-renders for whatever reason, this causes the [`value` of `Provider`](https://github.com/launchdarkly/react-client-sdk/blob/main/src/provider.tsx#L116) to change which causes all consumers of `useFlags` to re-render. To fix...

Take the following example code (highly simplified): ``` const flags = useFlags() return {children} ``` The call to `useFlags` occurs outside of the `LDProvider` context, thus resulting in an empty...

**Is this a support request?** Yes **Describe the bug** I am working on a React WebApp which uses both LaunchDarkly and AppInsights. Both seem to have a concept of Custom...

**Is your feature request related to a problem? Please describe.** Currently, there is, to the best of my understanding, no way to make the React SDK work with NextJS's [App...

enhancement

Issue: Typer error on e.getSummary(launchdarkly-js-client-sdk/dist/ldclient.es). TypeError Cannot read properties of undefined (reading 'push') Application logger catching this. ### Version: "launchdarkly-react-client-sdk": "2.28.0",

With the introduction of this change in [2.27.0](https://github.com/launchdarkly/react-client-sdk/blob/main/CHANGELOG.md#2270---2022-08-31) > flags object (that is either injected via props using LDConsumer or returned from the useFlags hook) will generate a flag evaluation...