Skip to content

Unidirectional data flow and the Clean Architecture #15

@ZherebtsovAlexandr

Description

@ZherebtsovAlexandr

In the blogpost you’ve considered unidirectional data flow (UDF) architecture in the Clean architecture (CA) context. Thank you for this point!

I’ve a question about СA layers and UDF.

In CA the domain layer is only business logic and business entity, the layer doesn't know anything about the presentation layer and the data layer. The layer is independent.

Basically in CA the data layer has the state of the app. The presentation layer has state of the screen, such as isLoading, isLoaded, screen is green or screen is red, etc. But the domain layer doesn’t it . In the article you’ve written that the store is the domain layer. It’s confused me bit.

I thought that UDF is more about the presentation layer in CA context. For example, you can switch MVI (one of UDF implementations) to MVP, MVVM and back. Of course you will have some bit change other layers.

What do you think about put the store to the presentation layer? And side effects moved to the domain layer?

Thank you for the article!

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