Skip to content

Question about Architecture #24

@ignaciogs

Description

@ignaciogs

Hi @florina-muntenescu, I have a question

In the class SearchRepositoriesViewModel.kt you are using the Transformations.map(). This method use a MediatorLiveData and this a observerForever. I have read in the android documentation that a viewmodel doesn't should observe never a liveData object. I attached a capture. My question is ¿It's good pratice use the MediatorLiveData or Transformations into ViewModel class?

image

Thank you very much and forgive the inconvenience.

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