Components are not loaded and shown properly when there are concurrent calls to NavigatorController.present()
See original GitHub issueShort description of the problem:
When there are concurent calls to NavigatorController
s present()
method, some of components don’t properly loaded and shown, e.g.:
nav.present(loading);
nav.present(toast);
It seems that the last call to present()
prevents all the previous calls to present()
.
What behavior are you expecting?
Both of loading and toast components are loaded and shown properly and promises from present
method resolve as they should do. After 1500ms loading component should be dismissed.
Steps to reproduce:
In all three cases expected behavior is the same and described in the section above.
Open plunker page for demos.
Case 1:
Click
Start
button
- Move your mouse over the
Start
button and you will see, that there is a transparent overlay.this.nav.present(loading)
isn’t resolved
Case 2:
Open
home.ts
file and comment ‘Case 1’ code and uncommentCase 2
code. ClickStart
button.
- Loading dialog is shown, but it won’t be removed after
1500
msthis.nav.present(loading)
isn’t resolved
Case 3:
Comment ‘Case 2’ code and uncomment
Case 3
code. ClickStart
button.
- Loading dialog isn’t shown
this.nav.present(loading)
is resolved
Other information: I think #6209 can somehow be related to this issue, but I’m not sure. #7342
Which Ionic Version? 1.x or 2.x 2.x
Plunker that shows an example of your issue
http://plnkr.co/edit/jHg2QDBIPs5NRTTUdxL7?p=preview
Run ionic info
from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.3.0 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.10 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 OS: (it was empty, but my OS is Win10) Node Version: v5.10.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
@likerRr Sorry for not being clear! You will be able to show a loading and toast component at the same time, but not multiple overlay components of the same type at the same time. Thanks!
@jgw96 Hello, thanks for answering. Please, clarify, you mean that in beta.11 I won’t be able to show loading and toast components at the one moment? Even if I wait until one of them resolves?