mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-26 06:37:21 +00:00
add calling of initial loadNext
This commit is contained in:
1 parent
eda6221288
commit
6df8ad3095
1 file changed
+3
@@ -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