android10 / android10/Android-CleanArchitecture
Push events in the data layer to the presentation layer
未關閉
discussion
question
- 主要語言
- Java
- 星號
- 15.5k
- 分支
- 3.3k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
What about update events in the data layer and how to notify about them the presentation layer? Let's suppose, that some third party service has updated some user data in the data base.
Is event bus approach good for that?
For example, we will define some event class in the domain layer: UserUpdatedEvent. Some presenter in the presentation can subscribe/unsubscribe for this event on the event bus. Data layer can post the UserUpdatedEvent on event bus ...
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。