Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

if loading chunk failed it will not work anymore #530

Open
@ionitron-bot

Description

@ionitron-bot

Original issue by @alaa-alshamy on 2017-12-13T07:33:50Z

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:

insert short code snippets here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: 

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.3.0 ios 4.5.3
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v6.12.2
    npm  : 3.10.10 
    OS   : Linux 4.4

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions