Fix synchronization being triggered two times when using the refresh button in TimelineTab
This commit is contained in:
parent
2be1dd0b72
commit
c3026f0fdb
@ -89,7 +89,7 @@ object TimelineTab : Tab {
|
|||||||
// Material3 pull to refresh doesn't have a onRefresh callback,
|
// Material3 pull to refresh doesn't have a onRefresh callback,
|
||||||
// so we need to listen to the internal state change to trigger the refresh
|
// so we need to listen to the internal state change to trigger the refresh
|
||||||
LaunchedEffect(swipeState.isRefreshing) {
|
LaunchedEffect(swipeState.isRefreshing) {
|
||||||
if (swipeState.isRefreshing) {
|
if (swipeState.isRefreshing && !state.isRefreshing) {
|
||||||
viewModel.refreshTimeline()
|
viewModel.refreshTimeline()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user