Levi Whalen
Struggling with useAsyncData, unexpected api calls
Here's a deployment if you want to check it out: https://grace-foursquare.pages.dev/
7 replies
Struggling with useAsyncData, unexpected api calls
I am trying with
generate
and the payload works if I reload from a specific page, no API call happens. but when I try to navigate to a page, it still calls the API. If I call useAsyncData
with the same key on every [slug].vue
page, and reload, then navigate, no API call happens. However, if I start from the homepage and navigate, the API calls happen on every page navigation.
Its really strange.7 replies