mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 01:47:11 +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"}
|
|
::
|