UNPKG

react-azure-config

Version:

🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.

31 lines • 1.02 kB
import { ReactNode } from 'react'; import { RuntimeConfigurationClient } from '../runtime-config-client'; import type { ConfigurationValue } from '../types'; interface ConfigContextValue { client: RuntimeConfigurationClient | null; environment: string; appId: string | undefined; config: ConfigurationValue | null; loading: boolean; error: string | undefined; } interface ConfigProviderProps { children: ReactNode; client?: RuntimeConfigurationClient; apiUrl?: string; appId?: string; fetchOnMount?: boolean; } export declare const ConfigProvider: React.FC<ConfigProviderProps>; export declare const useConfigContext: () => ConfigContextValue; export declare const useConfigProvider: () => { config: ConfigurationValue | null; loading: boolean; error: string | undefined; environment: string; appId: string | undefined; refreshConfig: () => Promise<void>; client: RuntimeConfigurationClient | null; }; export {}; //# sourceMappingURL=context.d.ts.map