> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useIsInitialized

```ts theme={null}
function useIsInitialized(): {
  isInitialized: boolean;
};
```

Hook to check if the CDP client has been properly initialized.
This should be used before attempting any CDP operations to ensure the client is ready.

## Returns

```ts theme={null}
{
  isInitialized: boolean;
}
```

| Name            | Type      |
| --------------- | --------- |
| `isInitialized` | `boolean` |

## Example

```tsx lines theme={null}
function LoadingGuard({ children }) {
  const { isInitialized } = useIsInitialized();

  if (!isInitialized) {
    return <div>Loading...</div>;
  }

  return children;
}
```
