[Vuejs]-How to use vue3 suspense on the root level?

0👍

Just remove await from the top level of the <script>:

<script setup>

import {onMounted, reactive} from 'vue';
const a = reactive({});

onMounted(async () => {
    Object.assign(a, await Setup());
});

</script>

Leave a comment