Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Is there a way to Cache a View?

$
0
0

I was navigating my app today and realized that the re-draw of every view can be time consuming. I'll say that every view is data driven from our SQLite database, so I'm fetching data every time it draws.

Contrast this with the Facebook app (which is equally data driven), and I notice that stale views are cached while the app fetches new data in the background.

now I have no issue fetching new data in the background, but what I'm wondering is, how can I cache the existing View for "instant" viewing while doing the background fetch? Is there an easy / cross platform way to do this? I don't really care if I'm chewing up storage as the data shouldn't be all that intensive.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>