NuxtN
Nuxt9mo ago
4 replies
Hacktheblues

Can I use useAsyncData for user interactions?

I'm working with a CMS or a third-party service that provides its own query layer. According to the documentation, I should use
useAsyncData 
for data fetching.

However, I also want to fetch data in response to user interactions, such as submitting a form or clicking a button.

In these cases, should I still use
$fetch
, or is it appropriate to use
useAsyncData
as well?
Was this page helpful?