name: Read and update data using Room issue template.
about: Issue about wrong code in the section 8
title: Wrong code in the code section
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
In which task and step of the codelab can this issue be found?
In Section 8, task: Add a function in the ViewModel, codelab of step 3
Describe the problem
the codelab line is: val currentItem = uiState.value.toItem()
but it should be: val currentItem = uiState.value.itemDetails.toItem()
Steps to reproduce?
- Go to...
- Click on...
- See error...
Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.
name: Read and update data using Room issue template.
about: Issue about wrong code in the section 8
title: Wrong code in the code section
labels: ''
assignees: ''
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-update-data-room#7
In which task and step of the codelab can this issue be found?
In Section 8, task: Add a function in the ViewModel, codelab of step 3
Describe the problem
the codelab line is:
val currentItem = uiState.value.toItem()but it should be:
val currentItem = uiState.value.itemDetails.toItem()Steps to reproduce?
Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.