suspensible option throws error when child of suspense is not async in SSR
Vue version
v3.3.0-beta5
Link to minimal reproduction
Steps to reproduce
<script setup>
import { defineAsyncComponent, h } from 'vue'
const Sync = {
setup() {
return () => h('div', 'hi there')
}
}
const Async = defineAsyncComponent(async () => {
await new Promise(resolve => setTimeout(resolve, 500))
return Sync
})
</script>
<template>
<Suspense>
<div>
<Suspense suspensible>
<Sync />
</Suspense>
</div>
</Suspense>
</template>
Load page with a synchronous component under
suspense.resolve() is called without a pending branch.
What is expected?
I expect that
What is actually happening?
error will be displayed:
suspense.resolve() is called without a pending branch.
System Info
No response
Any additional comments?
The problem is the same as the #8206 , except in e147512 we forgot to handle hydration