Q) Why does my data seem to magically appear on the UI after interacting with it, even though I have made changes in the backend?
For instance, when fetching and updating data bound to a list, such as:
this._LocalStorageService.getClients().then(
(data) => {
this.clients = (data.res.rows.length == 1) ? <Client[]>JSON.parse(data.res.rows.item(0).clients) : [];
this.showNoDataPresent = (this.clients.length == 0);
},
(error) => {
this._LogService.error(JSON.stringify(error.err));
}
);
The clients
list remains invisible on the UI until an interaction triggers its appearance, like clicking the menu button or focusing on a search field.