mirror of
https://github.com/Ashinch/ReadYou.git
synced 2025-02-01 20:07:24 +01:00
fix(ui): page flickers when tapping bottom bar (#621)
This commit is contained in:
parent
733c8d040b
commit
6b4b2151bc
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user