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

# Status

> Properties indicating the current operational state of the data fetcher.

## Import

```ts theme={null}
import { AssetPairs } from '@krono/core'
```

## Usage

You can check the general status string or use the boolean convenience getters (`loading`, `loaded`).

```ts theme={null}
if (assetPairs.loading) {
  console.log('Fetching pairs...');
}

if (assetPairs.status === 'error') {
  console.error(assetPairs.error);
}
```

## Type

```ts theme={null}
type AssetPairsStatus = 'idle' | 'loading' | 'loaded' | 'error';
```

## Related Properties

| Property  | Type      | Description                                               |                                                          |
| :-------- | :-------- | :-------------------------------------------------------- | -------------------------------------------------------- |
| `loading` | `boolean` | True if a fetch request is currently in progress.         |                                                          |
| `loaded`  | `boolean` | True if data has been successfully fetched at least once. |                                                          |
| `error`   | \`Error   | null\`                                                    | Contains the last error object if the status is 'error'. |
