Let's assume we have following hierarchy:
├── RootStackRouter
│ ├── Screen with ChildStackRouter
│ ├── Screen
│ ├── Screen
Then we open the screen onRootStackRouter, on top of the screen with ChildStackRouter:
├── RootRouter
│ ├── Screen with ChildRouter
│ ├── Screen
│ ├── Screen
│ │── Screen
And we trigger Android activity recreation twice (!) by changing the configuration (for example, switching to Dark theme and back to Light theme).
In this case, when returning to the screen with ChildStackRouter, we will see that it has lost its stack.
Let's assume we have following hierarchy:
Then we open the screen on
RootStackRouter, on top of the screen withChildStackRouter:And we trigger Android activity recreation twice (!) by changing the configuration (for example, switching to Dark theme and back to Light theme).
In this case, when returning to the screen with
ChildStackRouter, we will see that it has lost its stack.