VaranasiPrasanth-3918 avatar image
0 Votes"
VaranasiPrasanth-3918 asked LeonLu-MSFT commented

Page load first, await call later using PRISM

Am using Prism to implement MVVM and IOC. On every page, there are certain API calls to be performed to fetch and bind the data.
I used OnNavigatedTo to ensure that the page is loaded first, and then to perform API fetch using HttpClient, but it's not working.

It's taking time to navigate to the page as all Async/Await calls are being made from OnNavigatedTo.

What is the best approach to let the navigation happens first, and then trigger the page load/API calls in Xamarin Forms.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Prism is a third-part framework, if you have some issues about how to use Prsim , you can open a issue in the StackOverflow page: Thanks for your understanding.

0 Votes 0 ·

0 Answers