I'm using a `ListDetailPaneScaffold` and If I go t...
# compose
p
I'm using a
ListDetailPaneScaffold
and If I go to another screen when
navigator.scaffoldValue.primary
is expanded (detail pane on screen) and then come back to the
ListDetailPaneScaffold
screen, then, the
navigator.scaffoldValue.primary
is hidden. How can tell it to remember that it must be expanded? I'm using this for declaring the `navigator`:
Copy code
val navigator = rememberListDetailPaneScaffoldNavigator<Int>()
It seems that internally uses rememberSaveable, so I don't know how to solve this.
on portrait, when selecting a item of the list:
Copy code
navigator.currentDestination.content: 6
navigator.currentDestination.pane: Primary
PaneAdaptedValue(description=Expanded)
after going to another screen and coming back
Copy code
navigator.currentDestination.content: null
navigator.currentDestination.pane: Secondary
PaneAdaptedValue(description=Hidden)
I don't know why that is happening, because I'm using this to remember the navigator:
Copy code
val navigator = rememberListDetailPaneScaffoldNavigator<Int>()