fix(ssr): ensure async setup error handling work with suspense during ssr

This commit is contained in:
Evan You
2021-03-26 11:00:30 -04:00
parent d668d48e9e
commit 2e71f07bc1
4 changed files with 22 additions and 29 deletions

View File

@@ -811,10 +811,8 @@ function testRender(type: string, render: typeof renderToString) {
expect(fn2).toHaveBeenCalledTimes(1)
expect(fn2).toBeCalledWith('async child error')
expect('Uncaught error in async setup').toHaveBeenWarned()
})
// https://github.com/vuejs/vue-next/issues/3322
test('effect onInvalidate does not error', async () => {
const noop = () => {}