mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
3ec108493d
* docs: simplify docs to only markdown * Create nuxt-config.md * chore: update * chore: add readme
13 lines
297 B
Markdown
13 lines
297 B
Markdown
# `useError`
|
|
|
|
This function will return the global Nuxt error that is being handled.
|
|
|
|
```ts
|
|
const error = useError()
|
|
```
|
|
|
|
`useError` sets an error in the state and creates a reactive and SSR-friendly global Nuxt error across components.
|
|
|
|
::ReadMore{link="/docs/getting-started/error-handling"}
|
|
::
|