Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

5-6 Advanced Data Fetching

In this lesson, we’ll look at some more advanced things we can do with data fetching in Nuxt.

First, we’ll look at the key argument that both useFetch and useAsyncData use. This is for deduplicating requests on the initial page load, but not for caching. This might be confusing, because Nuxt 3 did have caching during the beta, but this was removed.

Thankfully, building our own cache is fairly straightforward, so we build that ourselves.

Lastly, we cover the pick and lazy options. These give us more control over what data we get back, and how that data is resolved asynchronously.