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

[Ionic 4] Storage.get() sometimes not getting called!

$
0
0

@Ionize wrote:

Anyone tried working with Ionic 4 storage and cordova sqlite?

I have a loader page (lazy loaded) as my root page where it checks (ionViewWillEnter) for intro and user status on storage and redirect views accordingly. But I notice that sometimes it fails to redirect because storage.get is not getting executed. I tested with a try and catch and it enters the catch. I have storage.get inside the storage.ready promise. Sometimes the router.navigate also doesn’t work and redirect the page. Any ideas? Maybe I need to delay the checking and wait until storage and router is fully initialized?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71262

Trending Articles



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