add calling of initial loadNext

This commit is contained in:
InsanusMokrassar committed 2025-03-07 18:23:40 +06:00
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)