-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if loading chunk failed it will not work anymore #13639
Comments
@alaa-alshamy I think your problem is coming from ionic-angular\util\module-loader.js
Workaround for now is do another check on promise.__zone_symbol__state, if lazy chunk was loaded successfully, it will be true, in another case, it will be false. Or remove module from cache map on promise.catch.
|
@longgt That's great mate, make it a PR if u tested it so it gonna be merged faster |
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know! Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#530 |
Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
if loading any chunk when using lazy loading failed for any reason (ex: lost connection for seconds) the app will not try to load it again and the page or modal will not open till the user refresh the app
Expected behavior:
the app should try to load it again
Steps to reproduce:
1- run project with lazy loading feature
2- make ur device offline
3- click on new page or modal to open (the app will try to load the chunk of that page or modal)
4- back online
5- click again on the page or modal to open (it will not open anymore)
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: