Questions tagged [usenuxtdata]

1 questions
2
votes
1 answer

Nuxt 3 cache and pagination with useNuxtData

Since latest Nuxt 3 version, cache has to be manually handled using useNuxtData() composable. This code is an extract of what I do to cache a single detail post, calling an API endpoint. const post = ref({}) // Get cached post using slug as cache…
Luciano
  • 2,052
  • 1
  • 16
  • 26