Skip to content

Even after async components was resolved, a timeout occur #5635

@kazupon

Description

@kazupon

Version

2.3.2

Reproduction link

https://jsfiddle.net/pu2dvgmn/8/

Steps to reproduce

After reproduction link was loaded, wait

What is expected?

When async components was resolved, a timeout is not occured.

What is actually happening?

When async components was resolved, a timeout is occured.


the following error in console log:

vue.js:437 [Vue warn]: Failed to resolve async component: ()=>({
      component:new Promise((resolve)=>(
        setTimeout(() => 
          resolve({template:"<div>loaded</div>"}), 200)
      )),
      loading: {template:"<div>loading</div>"},
      error: {template:"<div>timeout</div>"},
      delay: 200,
      timeout: 3000
    })
Reason: timeout (3000ms)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions