Skip to content

Commit 36ed349

Browse files
committed
remove imports, fix types
Signed-off-by: Will Chou <[email protected]>
1 parent 11b7190 commit 36ed349

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/react/src/provider/use-open-feature-client-status.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import { useEffect, useState } from 'react';
22
import { useOpenFeatureClient } from './use-open-feature-client';
3-
import { ProviderStatus } from '@openfeature/web-sdk';
4-
import { ProviderEvents } from '@openfeature/web-sdk';
5-
import type { ReactFlagEvaluationOptions } from '../common';
6-
import { DEFAULT_OPTIONS, useProviderOptions, normalizeOptions, suspendUntilReady } from '../common';
3+
import { ProviderEvents, type ProviderStatus, } from '@openfeature/web-sdk';
74

8-
type Options = Pick<ReactFlagEvaluationOptions, 'suspendUntilReady'>
95

106
/**
117
* Get the {@link ProviderStatus} for the OpenFeatureClient.
128
* @param options
139
* @returns {ProviderStatus} status of the client for this scope
1410
*/
15-
export function useOpenFeatureClientStatus(options?: Options) {
11+
export function useOpenFeatureClientStatus() {
1612
const client = useOpenFeatureClient();
1713
const [status, setStatus] = useState<typeof ProviderStatus>(client.providerStatus);
1814

0 commit comments

Comments
 (0)