N
Nuxt3mo ago
JV

defineComponent and async/await useAsyncData

Hello, we are migrating big app from Nuxt2 (nuxtjs/composition-api) to Nuxt3 and Im now facing one problem. We are using export default defineComponent({}) pattern for our components with useFetch and migrating to useAsyncData without rewriting every component to <script setup> (maybe someday, but not now). we are using useAsyncData without async/awake, just const {data} = useAsyncData(...) and data is fetched on ssr properly. What is the difference? Thank you!
1 Reply
JV
JV3mo ago
bump please