/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/app-dir/errors/app/server-component/error.js
16 строк
387 B
Jiwon Choi
Reapply "Stabilize catchError and retry by removing unstable_ prefix" (#94623)
10 июн 2026, 02:11
Не верифицирован
10 июн 2026, 02:11
74ce6b2
Код
Авторство
О чём код?
'use client' export default function ErrorBoundary({ error, reset, retry }) { return ( <> <p id="error-boundary-message">{error.message}</p> <p id="error-boundary-digest">{error.digest}</p> <button id="reset" onClick={() => reset()}> Try again </button> <button id="retry" onClick={() => retry()}> Retry </button> </> ) }