Nuxt/test/fixtures/basic/components/BreakInAsyncSetup.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

14 lines
233 B
Vue

<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>