Skip to content

Read and update data using Room #209

Description

@Tyeres

name: Read and update data using Room issue template.
about: Issue template for Read and update data using Room
title: Read and update data using Room
labels: ''
assignees: ''


URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-update-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-update-data-room#7

Specify the language of the codelab if it is not English:
English

In which task and step of the codelab can this issue be found?
It is step 8 (Implement sell item): step 3 of Add a function in the ViewModel

Describe the problem
The step says to implement: val currentItem = uiState.value.toItem(). This function does not exist in value. We need to write: val currentItem = uiState.value.itemDetails.toItem()
The Git repo corrects this too. This error is only in the codelab.

Steps to reproduce?

  1. Go to... N/A
  2. Click on... N/A
  3. See error... N/A

Versions
_Android Studio version:_N/A
_API version of the emulator:_N/A

Additional information
Include screenshots if they would be useful in clarifying the problem.

Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions