mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
48d886c860
* docs: add documents for use-error,use-lazy-async-data and use-lazy-fetch * docs(API): document useError,useLazyAsyncData and useLazyFetch Co-authored-by: xiaojie.jiang <xiaojie.jiang@dhc.com.cn>
334 B
334 B
useError
Nuxt provides a composable to catch global errors.
This function will return the global Nuxt error that is being handled.
const error = useError()
useError
set an error in state, create a reactive and SSR-friendly global Nuxt error across components.
::ReadMore{link="/guide/features/error-handling"} ::