UNPKG

launchdarkly-react-client-sdk

Version:
11 lines (10 loc) • 420 B
import React from 'react'; import { ReactSdkContext } from './types'; /** * Provides the LaunchDarkly client initialization error, if there was one. * * @param reactContext If specified, the custom React context will be used. * * @return The `launchdarkly-js-client-sdk` `LDClient` initialization error */ export default function useLDClientError(reactContext?: React.Context<ReactSdkContext>): Error | undefined;