Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70857

Local storage fetch and conditional navigation based on it

$
0
0

@balasivagnanam wrote:

I am doing an app where I save the user details, token fetched from REST API after the first time to local storage.
I check the local storage and will route to Login page only if local storage is empty.
After login is succesful I am writing the details to local storage and push the nav to account page which shows user details.
Now it has become like a loop where, local storage take time to write and before that navigation happens and local storage is empty and moves back to login page. but after a while the local storage is saved.

How to avoid this situation or do a work around here.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 70857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>