Right now I have been testing how to present the data of a page more efficient, if I do: navStack.push(profilePage)
onAppeared: { logic.getUserProfile(). //call to api to get user profile info }
some times the page presentation animation gets ‘stuck’ until the api finish, It gives the looks that the app is crashing
also I have tryed to add a Timer
onAppeared: loadInfoTimer.start()
Timer {
id: loadInfoTimer
interval: 500
triggeredOnStart: false
repeat: false
onTriggered: {
logic.getUserProfile()
}
}
This runs the presentation animation ok, but have a delay until the data is loaded, this is a bit slow too.
Also I have this case, when I need a data from an api to call another api, like this:
onAppeared:{
logic.fetchTaskDetail(taskId)
}
Connection{
target:dataModel
onTaskDetailFetched:{
logic.fetchRequesterUserInfo(taskDetail.owner)
}
onRequesterInfoFetched:{
//do something…
}
}
what is the best practice you do to make the data presentation better or look quickly or smooth