Bryan Morrow
Posts: 0
Joined: Wed Aug 27, 2014 1:05 pm

Event sequence not firing correctly

On screen 1 (my login screen), I have a service that authenticates the username/password.
Event 1, call service and store result in localStorage.
Event 2, get localStorage variable and decide whether to navigate to next screen or deny access.
Problem is, it's performing Event 2 before Event 1 has finished. I'm new to all this so a little help would be greatly appreciated.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Event sequence not firing correctly

Hello!

Move all Event 2 handlers on complete service Event 1.

Bryan Morrow
Posts: 0
Joined: Wed Aug 27, 2014 1:05 pm

Event sequence not firing correctly

I apologize, I'm not really sure what you mean. I'm looking for an On Complete but not seeing the option.

Bryan Morrow
Posts: 0
Joined: Wed Aug 27, 2014 1:05 pm

Event sequence not firing correctly

Found it! You rock! Thank you Maryna!

Return to “Issues”