Proper way to load data on navigation to ModalPage/Page
#18415
Unanswered
AndreasReitberger
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @AndreasReitberger. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a simple app at the moment. The app calls a modal page to show information of an
Item
object. The navigation happens with theShell
class.So far so good. However it takes about 4-6 seconds on each platform till the
View
is actually shown. So I tried some things, however I was not able to show the View and then load the data. It always loads the data first, and presents the page afterwards.Tested with
net7
andnet8
, same behaviour.This is the class of my
ModalView
And this the
ViewModel
behind it.This is the output when the navigation happens on Android. From the click to open the page, till the page is presented fully.
There is no heavy data loading happening, just passing an object to it and load it to display it. Maybe someone has a suggestion to improve this? The intended behaviour would be, the page is shown and then the data loading is happening while the
IsBusy
indicatior is showing work.Beta Was this translation helpful? Give feedback.
All reactions