mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-07 00:59:26 +00:00
add calling of initial loadNext
This commit is contained in:
@@ -85,6 +85,9 @@ internal fun <T> InfinityPagedComponent(
|
||||
) {
|
||||
val scope = predefinedScope ?: rememberCoroutineScope()
|
||||
val context = remember { InfinityPagedComponentContext<T>(page, size, scope, loader) }
|
||||
remember {
|
||||
context.loadNext()
|
||||
}
|
||||
|
||||
val dataState = context.dataState.collectAsState()
|
||||
context.block(dataState.value)
|
||||
|
Reference in New Issue
Block a user