This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Singleton Data Fetching Layer
In this lesson, learn how the singleton data layer changes impact Nuxt 4. Data fetchers with shared keys share the SAME reactive ref for data, status, and error states. getCachedData now fires whenever data is fetched but receives relevant context saying HOW the fetch was triggered allowing for more control over your caching strategies. Keys for useAsyncData and useFetch now support reactive values like refs, getters, or computed props.
