kadirahq / flow-router

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

Infinite loop between two routes kills browser #621

Closed slissner closed 3 years ago

slissner commented 8 years ago

Closes #620

This is currently a work-around that worked for me. Please check.

slissner commented 8 years ago

Please take into consideration:

 // TODO: Manually failing infinite go loop test.
  // The problem now is, that theoretically the user could manually .go() for many many times on the same route.
  // Let's say we run tests on the last 100 entries in the .go() history. Probably the user visited for 100 times the same
  // route with .go(). For instance, he triggered 100 times .go('/friends'). Then the infinite loop tests falsely would
  // stop the Router from executing.
  // To avoid this, there is a clean-up in the go history. Any-time