# stopLoading

Stops loading or refreshing without discarding optimistic history.

## Signatures

```ts
export declare const stopLoading: <A, E>(data: AsyncData<A, E>) => AsyncData<A, E>;
```

## Why

Removing progress settles success and failure while leaving initial or loading state semantics predictable. Cyclic history throws `TypeError`.

## Ownership and lifetime

This pure transformation acquires no resources and returns new plain wrappers where rebuilding is needed.

## Examples

```ts
import { startLoading, stopLoading, success } from "@typed/async-data"
const settled = stopLoading(startLoading(success("cached")))
```
