Lanzado el 7 de febrero de 2026
> 4.2.0 is the next minor release. 👀 Highlights We're excited to announce Nuxt 4.2, bringing new capabilities for better TypeScript DX, enhanced error handling, and improved control over data fetching! 🎉 🎯 Abort Control for Data Fetching You can now use `AbortController` signal
> 4.2.0 is the next minor release. 👀 Highlights We're excited to announce Nuxt 4.2, bringing new capabilities for better TypeScript DX, enhanced error handling, and improved control over data fetching! 🎉 🎯 Abort Control for Data Fetching You can now use `AbortController` signals directly within `useAsyncData`, giving you fine-grained control over request cancellation . This works by passing an internal signal to your `useAsyncData` `handler` to cancel any promise that can be canceled, such as `$fetch`. ```vue <script setup lang="ts"> const controller = new AbortController() const { data, error, clear, refresh } = await useAsyncData('users', (_nuxtApp, { signal }) => $fetch('/api/users', { signal })) refresh() // will actually cancel the $fetch request (if dedupe: cancel) refresh() // will actually cancel the $fetch request (if dedupe: cancel) refresh() clear() // will cancel the latest pending handler </script> ``` You also pass an `AbortController` signal directly to `refresh`/`execute`, giving you fine-grained control over request cancellation. This is particularly useful when you need to abort requests based on user actions or component lifecycle events. ```ts const { data, refresh } = await useAsyncData('posts', fetchPosts) // Abort an ongoing refresh const abortController = new AbortController() refresh({ signal: abortController.signal }) // Later... abortC
Genera un resumen en lenguaje claro de los cambios de este release, pensado para desarrolladores.