Skip to content

Commit ef440d4

Browse files
authored
add digest property to error prop (#56339)
Matching the conventions laid out in https://nextjs.org/docs/app/api-reference/file-conventions/error
1 parent 0eb71b6 commit ef440d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/02-app/01-building-your-application/01-routing/07-error-handling.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Error({
3232
error,
3333
reset,
3434
}: {
35-
error: Error
35+
error: Error & { digest?: string }
3636
reset: () => void
3737
}) {
3838
useEffect(() => {
@@ -111,7 +111,7 @@ export default function Error({
111111
error,
112112
reset,
113113
}: {
114-
error: Error
114+
error: Error & { digest?: string }
115115
reset: () => void
116116
}) {
117117
return (
@@ -182,7 +182,7 @@ export default function GlobalError({
182182
error,
183183
reset,
184184
}: {
185-
error: Error
185+
error: Error & { digest?: string }
186186
reset: () => void
187187
}) {
188188
return (

0 commit comments

Comments
 (0)