Ionic 2 Beta 11: loading.dismiss() does not work with other overlays
See original GitHub issueSince Beta 11 I have this issue:
let loading = this.loadingCtrl.create({content: 'Loading...'});
loading.present();
this.geolocationService.geolocate().subscribe(
(data) => {
loading.dismiss();
let alert = this.alertCtrl.create({
title: 'Title',
subTitle: 'Text',
buttons: ['OK']
});
alert.present();
},
...
);
loading.dismiss()
does not have any effect, the loading overlay stays open. loading.destroy()
removes it but I guess that is not the way to go.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Ionic 2 Beta 11: loading.dismiss() does not work with ... - GitHub
Since Beta 11 I have this issue: let loading = this.loadingCtrl.create({content: 'Loading...'}); loading.present(); this.geolocationService.
Read more >Dismiss a LoadingController - Ionic Framework
Hi, I switched to Ionic v4 recently and I have some troubles with LoadingController. I do not succeed to cancel it (when I...
Read more >Ionic 5 Angular LoadingController Uncaught (in promise)
At first, the problem I had was that loadingController.dismiss() was called before loadingController.create() finished, so I followed the ...
Read more >Dismissing All Loading Overlays in Ionic 4 - Damir's Corner
In Ionic 4, the dismissAll method for closing all currently open loading overlays has been removed. This might not be such a bad...
Read more >ionic-angular - UNPKG
ionic -angular/components/loading/loading.d.ts ; 31, * ; 32, * >Note that after the component is dismissed, it will not be usable anymore ; 33,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmm… some time ago I’ve have similar issue - not sure if it is Your problem. loading.dismiss() returns promise - try do something like:
especially when You want to open modal - it may causes some kind of lock f.e.:
WRONG
Works
For me, loading component works really unstable, it cause locks (f.e. #7948), so I’ve resigned to use it. I hope it helps…
I’m also using ionic 2 beta 11 , loading.dismiss() works fine…