Subscribe on changes!

defineAsyncComponent 如果提供了loading组件, 并且加载失败时会一直显示loading状态, 是设计成这样的吗?

avatar
Oct 20th 2021

Version

3.2.20

Reproduction link

codepen.io

Steps to reproduce

reflesh

What is expected?

加载失败后显示空白

What is actually happening?

加载失败后仍然显示loading页


设计成这样的吗, 还是bug?

avatar
Oct 20th 2021

Add an error component: https://v3.vuejs.org/guide/migration/async-components.html#_3-x-syntax

Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue (in English) if it turns out to be a bug 🙂