Rendering

Error boundary retry and reset

In the 16.3+ documentation lane, retry attempts to fetch and render the boundary children again. reset clears the error state and rerenders without a fresh fetch. The 16.2 unstable_retry is historical; inspect the installed version before using either interface. No recovery is guaranteed. Source: https://nextjs.org/docs/app/api-reference/file-conventions/error. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
retry(): void; reset(): void

Working Example

Example Snippetnextjs
// Inside a compatible error boundary component:<button type='button' onClick={()=>retry()}>Try again</button>
Next.js Reference