A recoverable route error boundary
'use client';
export default function ErrorPage({ reset }: { reset: () => void }) {
return <section><p role="alert">Could not load this page.</p><button onClick={reset}>Try again</button></section>;
}The reset callback asks Next to retry the route segment.