Skip to content

Remove UI and presentation logic from View Models #32

@razilsh

Description

@razilsh

I was looking into #18 and the solution requires a reference to Context. This can be done either by inheriting from AndroidViewModel or by passing the context to setupGetComments(). Neither of which seems like a good solution as it'd add further coupling between the view and view models. I suggest removing all the UI related logic from View Models so that we have a better separation of concern between different layers. This would allow us to test and extend different components in isolation. What do you think @worker8?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions