Posted Wednesday, September 13, 2023

Nuxt/Composable gotcha: fetching more than once ↗

Nuxt quirks

Geoff's thoughts: For this blog, I needed to do two fetch queries:

  1. get all the posts to get the post count and also to get all the tags used
  2. get a page of posts

In the comments above, a page component has no problem doing this. But in trying to turn this into a reuable composable, apparently this is more tricky. 🤷‍♂️