I have an application that uses some external data (currently a JSON file but in the future a REST API) that is later shown in a ion-list. I was following the examples shown where I request the data in the constructor of the Page will will return a Promise that resolves when the data is available.
The problem is that the transition to that page gets delayed until the data is loaded which makes the application feel laggy. I would expect that the transition happens immediately and then once the data is available the list is populated but this does not seem to be the case.
constructor should be synchronous and not for doing async and heavy work.
so you can start your request in the willEnter hook, (because this is a background-request and blocks nothing). But do not show results --> put a ngIf at your dom like --> <div *ngIf="viewEntered">YOUR LIST HERE<div>
And in the DidEnter Hook you set the flag to true, so if there are results, the browsers renders them.