Skip to main content
Nuxt provides utilities and auto-imported helper functions to help you build your application. These utilities are available throughout your app without needing to import them.
  • navigateTo - Programmatically navigate users to pages
  • abortNavigation - Prevent navigation and throw errors in route middleware

Data Management Utils

Component Preloading Utils

Layout Utils

HTTP Utils

  • $fetch - Make HTTP requests with automatic SSR optimization

Usage

All utilities are auto-imported and available globally in your Nuxt application:
<script setup>
// Navigate to a page
await navigateTo('/dashboard')

// Refresh data
await refreshNuxtData('myKey')

// Preload a route
await preloadRouteComponents('/about')
</script>