Skip to content

Commit

Permalink
chore: minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed Mar 8, 2024
1 parent d31d800 commit 374d598
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public fun Modifier.revealable(
): Modifier = this.then(
Modifier
.onGloballyPositioned { layoutCoordinates ->
for (key in keys) {
keys.forEach { key ->
state.addRevealable(
Revealable(
key = key,
Expand All @@ -134,9 +134,7 @@ public fun Modifier.revealable(
.composed {
DisposableEffect(Unit) {
onDispose {
for (key in keys) {
state.removeRevealable(key)
}
keys.forEach(state::removeRevealable)
}
}
this
Expand Down

0 comments on commit 374d598

Please sign in to comment.