Router in backstack loses its state after second configuration change
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.
Most likely the issue can be fixed at StateKeeperDispatcher level. I will need to try and test this.
I confirm that the problem is fixed with Decompose 3.2.0
Will work on bumping to new decompose soon. Stay tuned 👍