Nuxt/test/fixtures/basic/components/BreakInAsyncSetup.vue

14 lines
245 B
Vue
Raw Normal View History

<script setup>
async function getData () { }
await getData()
// break server-side
const data = window.useNuxtApp().payload
</script>
<template>
<div>
This breaks in server-side async setup. {{ data.serverRendered }}
</div>
</template>