You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize local ViewModelStoreOwner in NavHost as fallback instead of providing default GlobalViewModelStoreOwner (#1235)
## Proposed Changes
- Revert default value of `LocalViewModelStoreOwner` - it's `null` again
instead of `GlobalViewModelStoreOwner`
- Use local `ViewModelStoreOwner` in `NavHost` if
`LocalViewModelStoreOwner` is empty
## Testing
Test: try mpp sample
Copy file name to clipboardExpand all lines: lifecycle/lifecycle-viewmodel-compose/src/jbMain/kotlin/androidx/lifecycle/viewmodel/compose/LocalViewModelStoreOwner.jb.kt
0 commit comments