LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.14k stars 166 forks source link

Reduce recompositions due to TopAppBar #1542

Closed MV-GH closed 2 weeks ago

MV-GH commented 3 weeks ago

When you swipe up and down the top app bar moves. This updates the padding value. All composable which take this as param constantly recompose because the padding constantly changes as the header takes up more/less space. We can avoid that by applying it before the main composables. I had already done this for the feed. But we can do this easily already for the other screens.