Unverified Commit 0abd8771 authored by Sam Ko's avatar Sam Ko Committed by GitHub

docs(errors): remove confusing good-to-know since global-errors.tsx also show in…

docs(errors): remove confusing good-to-know since global-errors.tsx also show in dev as of 15.2 (#76825)

## Why?

The "Good to know" has a typo, and it is probably better not mentioned. The https://nextjs.org/docs/app/building-your-application/routing/error-handling#handling-global-errors page does not mention (the fact that `global-errors.tsx` now show in `next dev`) it either.
parent f14174f9
...@@ -193,12 +193,10 @@ export default function GlobalError({ error, reset }) { ...@@ -193,12 +193,10 @@ export default function GlobalError({ error, reset }) {
} }
``` ```
> **Good to know**: `global-error.js` is always displayed In development, error overlay will show instead.
## Version History ## Version History
| Version | Changes | | Version | Changes |
| --------- | ------------------------------------------- | | --------- | ------------------------------------------- |
| `v15.2.0` | display `global-error` also in development. | | `v15.2.0` | Also display `global-error` in development. |
| `v13.1.0` | `global-error` introduced. | | `v13.1.0` | `global-error` introduced. |
| `v13.0.0` | `error` introduced. | | `v13.0.0` | `error` introduced. |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment