android10 / android10/Android-CleanArchitecture

Saving With RxJava and the Repository Pattern

Open
#161 3 comments 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
Java
Stars
15.5k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

Hi, I have been reading the other issues and they all seem to be related to data retrieval rather than saving data. Both `UseCase`s in the project are for retrieval also.

My question is:

_What should I return (if anything) upon saving an entity and should this be an `Observable`?_

At the moment, following the whole separation of concerns and mapping entities at boundaries we get:

`UserModel > User > UserEntity - (save in repo) - (return saved entity) - UserEntity > User > UserModel`

Is this correct or is there a different pattern I should be following for `insert` and `update` operations?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.