withSaveableStateKey

Names this root tree for useSaveableState under the SavedStateRegistryOwner passed to create. The key replaces the root component's class as the tree's identity, so a screen can save two trees with the same root, and the next tree with this key takes over its values even when it replaces this tree while the screen is still visible. Nested trees ignore it.