Add warn or error when using async setup() outside <Suspense/>
What problem does this feature solve?
Currently when using async setup() on a component that is not wrapped in
What does the proposed API look like?
Whenever you leave
async setup () {}
a warn to be thrown in the console.
Example:
[Vue warn]: Components using async setup() should be wrapped in Suspense in order to render
And maybe a tip/reminder that a separate function can be used.
Example:
[Vue warn]: Components using async setup() should be wrapped in Suspense in order to render. Consider using separate function to use await in.
Duplicate of https://github.com/vuejs/vue-next/issues/2603