From f3590c54db6b78dcfabbea12a65250b318d6db15 Mon Sep 17 00:00:00 2001 From: Will Chou Date: Fri, 3 Jan 2025 21:49:15 -0500 Subject: [PATCH] comments Signed-off-by: Will Chou --- .../react/src/provider/use-open-feature-client-status.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react/src/provider/use-open-feature-client-status.ts b/packages/react/src/provider/use-open-feature-client-status.ts index 16bc64207..95e2a1421 100644 --- a/packages/react/src/provider/use-open-feature-client-status.ts +++ b/packages/react/src/provider/use-open-feature-client-status.ts @@ -1,13 +1,14 @@ import { useEffect, useState } from 'react'; import { useOpenFeatureClient } from './use-open-feature-client'; -import { ProviderEvents, type ProviderStatus, } from '@openfeature/web-sdk'; +import type { ProviderStatus } from '@openfeature/web-sdk'; +import { ProviderEvents } from '@openfeature/web-sdk'; /** * Get the {@link ProviderStatus} for the OpenFeatureClient. * @returns {ProviderStatus} status of the client for this scope */ -export function useOpenFeatureClientStatus() { +export function useOpenFeatureClientStatus(): ProviderStatus { const client = useOpenFeatureClient(); const [status, setStatus] = useState(client.providerStatus);