google-developer-training / basic-android-kotlin-compose-training-inventory-app

Apache License 2.0
77 stars 84 forks source link

Persist data with Room - UI state class walkthrough- types mixed up in description #44

Open fe60 opened 1 year ago

fe60 commented 1 year ago

[Android Basics with Compose Unit 6: Data persistence Use Room for data persistence Persist data with Room

  1. Add the save functionality](https://developer.android.com/codelabs/basic-android-kotlin-compose-persisting-data-room?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-persisting-data-room#8)

In which task and step of the codelab can this issue be found? UI state class walkthrough, first bullet

  • The ItemDetails.toItem() extension function converts the ItemUiState UI state object to the Item entity type.

Describe the problem

It converts ItemDetails to Item and not ItemUiState. Obvious, but still confusing.