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
so it always calls event.preventDefault() because we need to wait for the resolution of the promise returned by initCurrentUser() to figure out if we are cleared for transition, but it seems like i can't transition in the then() block and it even looks like it gets into an infinite loop.
as always, possible it's operator error, but i was just wondering off the bat if anyone with a deeper understanding of the internals can spot something obviously flawed about what i'm attempting to do.
regards,
tony.
The text was updated successfully, but these errors were encountered:
Could you show an example of how the $transition$ object would solve this issue? As far as I can tell it seems to give me a great way to read what's going on but no way to cancel a state change based on a promise.
i've got this setup where i'm trying to do some authorization checking in
stateChangeStart
, and it looks something like this (in coffee-script):so it always calls
event.preventDefault()
because we need to wait for the resolution of the promise returned byinitCurrentUser()
to figure out if we are cleared for transition, but it seems like i can't transition in thethen()
block and it even looks like it gets into an infinite loop.as always, possible it's operator error, but i was just wondering off the bat if anyone with a deeper understanding of the internals can spot something obviously flawed about what i'm attempting to do.
regards,
tony.
The text was updated successfully, but these errors were encountered: