kviewmodel--mpp
kviewmodel--mpp copied to clipboard
Screen Rotation Handling
Could you explain how a ViewModel can survive screen rotation please?
Does it could help me? LocalRootController.current.setupWithViewModels()
Hello.
To handle screen rotation you need to save viewmodel when changing configuration, which requires integration with navigation (to receive a callback on the screen close event and delete saved viewmodel). At the moment the library only supports navigation with Odyssey, in a separate kviewmodel-odyssey artifact