RC
RC
  • Get Started
  • Guide
  • API
  • Examples
  • Community
    • useAppConfig
    • useAsyncData
    • useCookie
    • useError
    • useFetch
    • useHead
    • useHydration
    • useLazyAsyncData
    • useLazyFetch
    • useNuxtApp
    • useRequestEvent
    • useRequestHeaders
    • useRoute
    • useRouter
    • useRuntimeConfig
    • useState
    • <NuxtPage>
    • <NuxtLayout>
    • <NuxtLink>
    • <NuxtLoadingIndicator>
    • <NuxtErrorBoundary>
    • <NuxtWelcome>
    • <Teleport>
    • $fetch
    • abortNavigation
    • addRouteMiddleware
    • clearError
    • clearNuxtData
    • createError
    • defineNuxtComponent
    • defineNuxtRouteMiddleware
    • definePageMeta
    • navigateTo
    • prefetchComponents
    • preloadComponents
    • refreshNuxtData
    • setPageLayout
    • setResponseStatus
    • showError
    • updateAppConfig
    • Lifecycle Hooks
    • Kit Utilities
    • nuxi add
    • nuxi analyze
    • nuxi build
    • nuxi cleanup
    • nuxi dev
    • nuxi generate
    • nuxi info
    • nuxi init
    • nuxi prepare
    • nuxi preview
    • nuxi typecheck
    • nuxi upgrade
    • Nuxt Config

useError

This function will return the global Nuxt error that is being handled.

const error = useError()

useError sets an error in the state and creates a reactive and SSR-friendly global Nuxt error across components.

Read more in Getting Started > Error Handling.

Composables

useCookie

Composables

useFetch