Skip to content

Commit

Permalink
Fix scroll position restoration regression in 3c4bc61
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroBrine1st committed Jan 22, 2024
1 parent dab36c6 commit 1f32977
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class PagingItemsImpl<Key : Any, Value : Any>(
suspend fun collectPagingData(startImmediately: Boolean) {
flow.collect { snapshot ->
loadStates = snapshot.loadStates
currentGeneration = snapshot.generation
if (uiChannel == null) {
uiChannel = snapshot.uiChannel
pagingConfig = snapshot.pagingConfig
currentGeneration = snapshot.generation
if (startImmediately && loadStates.refresh is LoadState.NotLoading) refresh()
}

Expand Down

0 comments on commit 1f32977

Please sign in to comment.