compose-tinder-card icon indicating copy to clipboard operation
compose-tinder-card copied to clipboard

Optimize View Loading: Reload Only Necessary ProfileCard on Swipe

Open venkatselva8 opened this issue 1 year ago • 0 comments

I have identified an issue in the sample project. I added logs during the loading of ProfileCard, CircleButton, and Box. Currently, when you swipe in any direction, all these views reload. Specifically, the ProfileCard reloads the number of remaining profiles to display.

I believe the optimal approach is to load only the ProfileCard that needs to be shown, similar to how a RecyclerView loads a specific set of items that are going to be displayed. This would enhance the performance and prevent unnecessary reloading of views.

venkatselva8 avatar Jan 26 '24 14:01 venkatselva8