You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2022. It is now read-only.
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
Doing heavy calculations during View Initialization does block the closing of the
ionic sidebar menu.
Neither using ionViewDidLoad nor when using ionViewDidEnter (which should Runs when the page has fully entered and is now the active page. )
makes the sidebar close until the calculation is finished.
Expected behavior:
From my point of view the page is fully entered, when it is fully visible.
If you cannot avoid intense calculations while entering a page, it would be much
more user-friendly to show the page without fully loaded infos than to block the whole navigation (by keeping sidebar open).
My proposal/request is to not start ionViewDidEnter until the menu is closed.
Problems with this rather simple approach may occur when using split pane mode.
Steps to reproduce:
A sample project demonstrating the problem can be found here.
The problem can be observed when entering Page1 (uses ionViewDidiLoad) or Page2(uses ionViewDidEnter) from the sidemenu.
A workaround using setTimeout(()=>{doStuff();},50); inside of ionViewDidEnter can be observed when entering Page3.
Original issue by @znegva on 2017-12-18T06:57:13Z
Ionic version:
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
Doing heavy calculations during View Initialization does block the closing of the
ionic sidebar menu.
Neither using
ionViewDidLoad
nor when usingionViewDidEnter
(which shouldRuns when the page has fully entered and is now the active page. )
makes the sidebar close until the calculation is finished.
Expected behavior:
From my point of view the page is fully entered, when it is fully visible.
If you cannot avoid intense calculations while entering a page, it would be much
more user-friendly to show the page without fully loaded infos than to block the whole navigation (by keeping sidebar open).
My proposal/request is to not start ionViewDidEnter until the menu is closed.
Problems with this rather simple approach may occur when using
split pane mode.
Steps to reproduce:
A sample project demonstrating the problem can be found here.
The problem can be observed when entering Page1 (uses
ionViewDidiLoad
) or Page2(usesionViewDidEnter
) from the sidemenu.A workaround using
setTimeout(()=>{doStuff();},50);
inside ofionViewDidEnter
can be observed when entering Page3.Related code:
https://github.com/znegva/ionic-sidemenu-issue
Other information:
The only way around this was to use
setTimeout(()=>{doStuff();},50);
, whichisn't a nice solution :)
Ionic info:
The text was updated successfully, but these errors were encountered: