How to Cache Data with the Key Option for useAsyncData and useFetch
In this lesson, learn how the key
affects how data is cached with Nuxt’s useFetch
and useAsyncData
composables. When combined with the lazy
option, it can be useful for showing stale data while fresh data is being fetched.
Links
- Chapter 1