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

15 lines
234 B
Vue
Raw Normal View History

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