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

14 lines
233 B
Vue
Raw Permalink 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>