Fix excessive rebuilds when tapping the same tab

This commit is contained in:
Tommy Chow 2021-10-10 00:11:50 -04:00
parent 6f3259ff45
commit c8187fc719

View file

@ -13,6 +13,8 @@ abstract class _HomeStoreBase with Store {
@action
void handleTap(int index) {
selectedIndex = index;
if (index != selectedIndex) {
selectedIndex = index;
}
}
}