apps-android-wikipedia icon indicating copy to clipboard operation
apps-android-wikipedia copied to clipboard

Use SavedStateHandle in view models

Open Isira-Seneviratne opened this issue 1 year ago • 2 comments

Pass SavedStateHandle instead of Bundle to the view models. Values provided via an Intent's extras or a fragment's arguments are automatically passed to the state handle in the default view model factory implementation, which eliminates the need to implement a view model factory separately.

Isira-Seneviratne avatar Aug 19 '24 09:08 Isira-Seneviratne