# useReadErrorReset

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

The reset handle of the nearest ReadErrorResetBoundary, or of the whole app without one. Signature, result and examples for useReadErrorReset.

Source: https://ensforge.com/docs/reference/react/use-read-error-reset

<ApiMeta kind="Read hook" stability="stable" since="1.0.0" source="packages/react/src/provider/errorReset.tsx#L138" />

The reset handle of the nearest [`ReadErrorResetBoundary`](/docs/reference/react/components#readerrorresetboundary), or of the whole app without
one. Call `reset` from an error boundary's reset callback so `useSuspenseRead` reads again.

## Signature [#signature]

```ts
function useReadErrorReset(): ReadErrorReset
```

## Examples [#examples]

```tsx title="Resetting from a boundary component"
import { useReadErrorReset } from "@ensforge/react"

export function RetryButton({ onRetry }: { onRetry: () => void }) {
  const { reset } = useReadErrorReset()
  return <button onClick={() => { reset(); onRetry() }}>Try again</button>
}
```

## See also [#see-also]

- The [hook types](/docs/reference/react#types): `ReadResult`, `WriteResult` and `ReadConfig`.