You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click between "One" and "Two". You'll see that the beforeModel hook fires twice during each transition, and the second time it fires with incorrect params (it receives the params of the current route, not the new destination route).
Ideally it would not fire twice (see #3056 ). But as long as it's going to fire twice, it needs to at least fire with the correct parameters.
The text was updated successfully, but these errors were encountered:
Sorry this has been so inactive for so long; I'm working on router params stuff right now and this does seem related to some other problems I've noticed.
Here's a minimal JSBin that demonstrates the problem:
http://jsbin.com/iZArAs/2/edit?html,js,output
Click between "One" and "Two". You'll see that the beforeModel hook fires twice during each transition, and the second time it fires with incorrect params (it receives the params of the current route, not the new destination route).
Ideally it would not fire twice (see #3056 ). But as long as it's going to fire twice, it needs to at least fire with the correct parameters.
The text was updated successfully, but these errors were encountered: