kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 195 forks source link

Better handling of routing when stop is called from a trigger (both t… #679

Closed convexset closed 7 years ago

convexset commented 7 years ago

Better handling of routing when stop is called from a trigger (both triggersEnter and triggersExit). In particular, triggersExit fires again after another exit attempt.

Using stop() in triggersExit results in a duplicate entry in the user's history will be created in the "next" slot. This is arguably a small price to pay for triggersExit firing again (on routing) after a stop.

convexset commented 7 years ago

Will fix based on tests.