N
Nuxt10mo ago
danbi

useAsyncData

guys, When writing useAsyncData, I wonder what the types in <> are for. example) const { data, status } = useAsyncData<CourseWithPath, unknown, CoursesReturn, Test>($fetch.apply);
1 Reply
manniL
manniL10mo ago
1. Why $fetch.apply? 2. The first generic you can pass is the type of the data ref

Did you find this page helpful?