Levi Whalen
Struggling with useAsyncData, unexpected api calls
Hello! I’m using
useAsyncData()
to fetch data from Sanity. Whenever I navigate to a page where I’m fetching the data, I see a network request to Sanity. I was under the impression that useAsyncData
would return a static payload and not fire requests to the upstream service. Am I using it wrong?
I’m deploying to Cloudflare Workers. Maybe I missed a step to get things to work as I expected.
Thanks for any help!7 replies