mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
docs: fix a typo and link (#4281)
This commit is contained in:
parent
d8ee524141
commit
2dadd4f0b3
@ -1,6 +1,6 @@
|
|||||||
# `throwError`
|
# `throwError`
|
||||||
|
|
||||||
Nuxt provides a quick and simple way to throw errows.
|
Nuxt provides a quick and simple way to throw errors.
|
||||||
|
|
||||||
Within your pages, components and plugins you can use `throwError` to throw an error.
|
Within your pages, components and plugins you can use `throwError` to throw an error.
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ Within your pages, components and plugins you can use `throwError` to throw an e
|
|||||||
throwError("😱 Oh no, an error has been thrown.")
|
throwError("😱 Oh no, an error has been thrown.")
|
||||||
```
|
```
|
||||||
|
|
||||||
The thrown error is set in state using [`useError()`](/api/composables/useError) to create a reactive and SSR-friendly shared error state across components.
|
The thrown error is set in state using [`useError()`](/api/composables/use-error) to create a reactive and SSR-friendly shared error state across components.
|
||||||
|
|
||||||
`throwError` calls the `app:error` hook.
|
`throwError` calls the `app:error` hook.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user