Skip to content

push to route with async component before create root vue instance will fail #2712

Closed
@noe132

Description

@noe132

Version

3.0.3

Reproduction link

https://jsfiddle.net/qLz5ew9t/

Steps to reproduce

  1. create a vue-router instance
  2. call router.push to some async-component-route
  3. create the root vue instance

What is expected?

router.push success

What is actually happening?

router.push was aborted


If we change step2 to push to some sync-component-route, then the push would be success.
Or, exchange step2 with step3, call router.push after create the vue instance, router.push will also success
Is this intended or a bug or not allowed use cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions