wip: suspense refactor

This commit is contained in:
Evan You
2019-09-10 11:01:11 -04:00
parent c9e625864a
commit a16c87be63
3 changed files with 86 additions and 56 deletions

View File

@@ -23,7 +23,6 @@ describe('renderer: suspense', () => {
}
})
// TODO test mounted hook & watch callback buffering
const AsyncChild = createAsyncComponent(
() =>
new Promise(resolve => {
@@ -62,7 +61,6 @@ describe('renderer: suspense', () => {
const Comp = {
name: 'root',
setup() {
// TODO test fallback
return () =>
h(Suspense, [msg.value, h(Mid), h(AsyncChild2, { msg: 'child 2' })])
}
@@ -79,7 +77,9 @@ describe('renderer: suspense', () => {
)
})
test.todo('fallback content update')
test.todo('buffer mounted/updated hooks & watch callbacks')
test.todo('fallback content')
test.todo('content update before suspense resolve')