Subscribe on changes!

Asynchronous processing of setup function fails

avatar
Dec 15th 2021

Version

3.2.26

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  • Make the setup function asynchronous(async setup())
  • Call asynchronous processing in setup function(await new Promise()) →Error message is displayed「Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')」

What is expected?

I want the setup function to be able to be normally asynchronous

What is actually happening?

Maybe you haven't received the Promise well with the life cycle hook. The experimental feature suspense cannot be used either.


It looks like a similar issue has been resolved before, but the bug hasn't been fixed.

https://github.com/vuejs/vue-next/issues/3857

avatar
Dec 15th 2021

Components with async setup have to be nested in a Suspense component.

avatar
UDK
Dec 22nd 2021

The problem is reproduced in the same way inside Suspense

avatar
Dec 22nd 2021

I disagree. Feel free to provide a reproduction in a new issue though.

avatar
Jul 21st 2023

still a bug