Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kazupon opened this issue May 9, 2017 · 0 comments
Closed

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

kazupon opened this issue May 9, 2017 · 0 comments
Assignees
Labels

Comments

@kazupon
Copy link
Member

kazupon commented May 9, 2017

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)
@kazupon kazupon self-assigned this May 9, 2017
@kazupon kazupon added the bug label May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant