AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Unidirectional Data Flow in the UI Layer
In the UI layer we definitely recommend that unidirectional data flow and then it can have different names. So there are certain patterns that can be applied throughout the whole application. It was like the data layer as it was mentioned, it was exposing pollutants and flow is the recommended approach now. But if you take a look at the data layer also, there are some similarities because there is immutability. The data that is exposed from the data layer should be mutable just to avoid problems,. make it easier to test and avoid risk conditions and all that.