Now our UI components are too complicated because they contain a lot of business logic. We should move out all not UI logic to other classes. It allows us to avoid some common problems and write tests. I suggest using MVI pattern implemented by mosby. Sample app with MVI can be found here.
Components:
Now our UI components are too complicated because they contain a lot of business logic. We should move out all not UI logic to other classes. It allows us to avoid some common problems and write tests. I suggest using MVI pattern implemented by mosby. Sample app with MVI can be found here.
Components: