Skip to content

New Promise API seems to break next(false) implementation in guard #2873

@hazzo

Description

@hazzo

Version

3.1.1

Reproduction link

https://jsfiddle.net/ox6qpz9t/1/

Steps to reproduce

  • Open console
  • Click in foo button that will navigate programmatically to foo route (with replace method) that has a beforeEnter guard.
  • In the console de error Uncaught (in promise) false will appear when navigation is being aborted in guard with next(false)

What is expected?

Abort navigation without error

What is actually happening?

Aborted navigation with unhandled promise error in console.


In version 3.0.7, with the old API (not the new one that returns a promise) was working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions