Merge pull request #2912 from vitorpamplona/claude/fix-pull-to-refresh-piOXw

Rename onRefresh callback to avoid shadowing parameter
This commit is contained in:
Vitor Pamplona
2026-05-15 16:28:59 -04:00
committed by GitHub
@@ -73,7 +73,7 @@ fun RefresheableBox(
) {
var isRefreshing by remember { mutableStateOf(false) }
val scope = rememberCoroutineScope()
val onRefresh: () -> Unit = {
val onRefreshWrapped: () -> Unit = {
isRefreshing = true
scope.launch {
onRefresh()
@@ -84,7 +84,7 @@ fun RefresheableBox(
PullToRefreshBox(
isRefreshing = isRefreshing,
onRefresh = onRefresh,
onRefresh = onRefreshWrapped,
modifier = Modifier.fillMaxSize(),
content = content,
)