Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes request #1

Closed
wants to merge 1 commit into from
Closed

Changes request #1

wants to merge 1 commit into from

Conversation

lus-ence
Copy link

* 🟡 Please, answer on them before moving further and after changes would be made
* 1️⃣ How the configuration changes are handled with Feature (if so)?
* 2️⃣ Can we have MVI using ViewModel or Presenter?
* 3️⃣ Could the race conditions issue happen
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'm using the MVICore library to implement MVI in the application. This library has a Timecapsule that can help to save/restore configuration changes. But I didn't implement it. More info -> https://badoo.github.io/MVICore/features/timecapsule/
  2. We can wrap our Feature in the ViewModel or Presenter if we really need it.
  3. I don't think so, because MVI is implemented using Observer pattern. All user actions are passed to the Observable flow and handled individually. And also State in MVI is immutable, so we copy and create new objects, we don't change existing variables in the State object.

* > the domain layer shouldn't have any dependencies, even to another domain
* > the data layer should have only the dedicated domain dependency, and no another data layers
* > of course, there might be exception, but usually we should avoid it
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I knew that but decided to not duplicate classes for such a simple application. Of course in the multi-modular architecture, it's mandatory.

@lus-ence lus-ence closed this Jun 28, 2023
@lus-ence
Copy link
Author

Things are going to be improved within #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants