How to skip Login page is user is logged in?


#1

What is the best practice to do this?

For example, I set Login page to be my root page, then every time an app is opened, inside ionViewCanEnter method, I check if token is set in local storage.

But the thing is, sometimes, when opening an app, I see Login page for a short period of time (less than a second) before it switches to Dashboard page. Can I avoid that? That Login page doesnt get rendered if user is logged in?