In this video, we break down how $fetch
, useFetch
, and useAsyncData
differ. $fetch
is great for responding to user interactions while useAsyncData
and useFetch
are good for fetching data to display on page load. useAsyncData
and useFetch
de-duplicate requests by forwarding the data fetched on the server to the client so that the client doesn’t have to make the request again. Finally, useAsyncData
is great for working with 3rd party JavaScript clients or SDKs.
Links