Fetch data with useFetch
You can fetch data from the server directly in the component.
The useFetch
composable will make sure the same data don't have to be refetched again on the client side.
const { data } = await useFetch('/api/path')
You can fetch data from the server directly in the component.
The useFetch
composable will make sure the same data don't have to be refetched again on the client side.
const { data } = await useFetch('/api/path')