fix(ui): page flickers when tapping bottom bar (#621)

This commit is contained in:
lazzzis 2024-02-18 01:14:17 -08:00 committed by GitHub
parent 733c8d040b
commit 6b4b2151bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -320,8 +320,9 @@ fun FlowPage(
flowUiState.listState.scrollToItem(0)
}
}
homeViewModel.changeFilter(filterUiState.copy(filter = it))
homeViewModel.fetchArticles()
if (filterUiState.filter != it) {
homeViewModel.changeFilter(filterUiState.copy(filter = it))
}
}
}
)