Skip to content

Commit 732537a

Browse files
committed
add force recomposition for overlay example
1 parent 9ce4c8f commit 732537a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

sample/shared/src/commonMain/kotlin/composegears/tiamat/sample/content/layouts/LayoutOverlayDestinations.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,17 @@ val LayoutOverlayDestinations by navDestination(ScreenInfo()) {
6969
CompositionLocalProvider(
7070
LocalNavAnimatedVisibilityScope provides this,
7171
) {
72-
EntryContent(it)
72+
key(overlays) {
73+
EntryContent(it)
74+
}
7375
}
7476
}
7577
// draw overlays on top of content
76-
Box {
77-
for (entry in overlays) {
78-
EntryContent(entry)
78+
key(overlays) {
79+
Box {
80+
for (entry in overlays) {
81+
EntryContent(entry)
82+
}
7983
}
8084
}
8185
}

0 commit comments

Comments
 (0)