Skip to content

Infinite recursion with willTransition hook and queryParams #9818

@kekbur

Description

@kekbur

I have a route with a query parameter with refreshModel set to true. The route has a willTransition hook, which prompts the user to confirm that they want to navigate away from the route. If the user presses cancel, the transition is aborted using transition.abort(). This combination causes the router to enter infinite recursion where the user is presented with the confirm dialog over and over again until they press ok.

JSbin: http://jsbin.com/vuzaxe/1
Steps to reproduce: click one of the colors, press the cancel button on the confirmation dialog

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions