Skip to content

Commit

Permalink
chore: Constant for load more trigger threshold
Browse files Browse the repository at this point in the history
Fixes: LEARNER-10290
  • Loading branch information
HamzaIsrar12 committed Jan 8, 2025
1 parent 0314918 commit 200efc6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private fun InboxView(
)
)
}
val loadMoreTriggerThreshold = 4

Scaffold(
scaffoldState = scaffoldState,
Expand Down Expand Up @@ -229,7 +230,7 @@ private fun InboxView(
}
}

if (scrollState.shouldLoadMore(4)) {
if (scrollState.shouldLoadMore(loadMoreTriggerThreshold)) {
paginationCallBack()
}
}
Expand Down

0 comments on commit 200efc6

Please sign in to comment.