File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ setContent {
1313}
1414```
1515
16- !!! error
16+ !!! danger
1717 There is a know bug using any Transition APIs can leaky ScreenModels or ViewModels, this happens because Voyager by default
1818 dispose Screens in the next Composition tick after a ` pop ` or ` replace ` is called, but the transition only finish later, so
1919 the ScreenModel or ViewModel is re created or cleared to early. For this purpose since Voyager ` 1.1.0-beta02 ` we have introduce
@@ -35,11 +35,10 @@ setContent {
3535!!! warning
3636 Have encounter ` Screen was used multiple times ` crash? Provide a ` uniqueScreenKey ` for your Screens
3737
38- ```kotlin hl_lines="3 4 "
38+ ```kotlin hl_lines="3 3 "
3939 class ScreenFoo : Screen {
4040
41- override val key: ScreenKey
42- get() = uniqueScreenKey
41+ override val key: ScreenKey = uniqueScreenKey
4342
4443 @Composable
4544 override fun Content() {
You can’t perform that action at this time.
0 commit comments