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.
18 lessons
7 lessons
7 lessons
11 lessons
18 lessons
8 lessons
17 lessons