jsuarezruiz / Xamarin.Forms.TabView

The TabView is a Xamarin.Forms control to display a set of tabs and their respective content.
55 stars 13 forks source link

Lazy Tab is not lazy #6

Open TienNK1987 opened 4 years ago

TienNK1987 commented 4 years ago

It sounds like the lazy tab is not really lazy. As I see when debugging my app, TabView always initializes all ContentView in all TabViewItem (Tab content) when opening the page.

AswinPG commented 3 years ago

In my experience it was quite the opposite (android), On each tab change the contentview was initialised every time. Shouldn't it be initialised only once. So we can have good statrtup as well as runtime performance. In current situation runtime performance is low while using Lazyload

jsuarezruiz commented 3 years ago

Refactoring and improving several parts of the control: https://github.com/jsuarezruiz/Xamarin.Forms.TabView/pull/12 I will check thoroughly the best option to have Lazy Loading.

Thanks for all your feedback.