Skip to content

Router in backstack loses its state after second configuration change #100

Description

@Skeptick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions