mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 18:27:03 +05:30
api: add support for pagination
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
93985ee02d
commit
e7860e4f55
3 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@ class MainActivity : AppCompatActivity() {
|
|||
val coroutineScope = rememberCoroutineScope()
|
||||
val posts = mutableStateListOf<LobstersPost>()
|
||||
coroutineScope.launch {
|
||||
posts.addAll(apiClient.getHottestPosts())
|
||||
posts.addAll(apiClient.getHottestPosts(1))
|
||||
}
|
||||
LobstersApp(posts)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue