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.

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.