What is the preferred way to use Saver with “complex” object ?
Copy code
data class Container(val name: String, val items: List<Item>)
data class Item(val id: Int)
I know how to create a Saver for each (an object, or a list), but I’m not sure how to handle object that contains a list
nitrog42
05/04/2022, 12:52 PM
I shall precise that the list contains few items and I’m looking for using rememberSaveable/SavedStateHandle, I already have a database but that’s not the usecase