Fix lint issues
This commit is contained in:
parent
54221d9951
commit
d15b227c33
1 changed files with 4 additions and 2 deletions
|
|
@ -177,9 +177,11 @@ fun TimelineView(
|
|||
onClearFocusRequestState = ::clearFocusRequestState
|
||||
)
|
||||
|
||||
val isCloseToStartOfLoadedTimeline by remember { derivedStateOf {
|
||||
val isCloseToStartOfLoadedTimeline by remember {
|
||||
derivedStateOf {
|
||||
lazyListState.firstVisibleItemIndex + lazyListState.layoutInfo.visibleItemsInfo.size >= lazyListState.layoutInfo.totalItemsCount - 10
|
||||
} }
|
||||
}
|
||||
}
|
||||
LaunchedEffect(isCloseToStartOfLoadedTimeline) {
|
||||
// Only back paginate when we're close to the start of the loaded timeline items and the user is actively scrolling
|
||||
if (lazyListState.isScrollInProgress && isCloseToStartOfLoadedTimeline) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue