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

Clean-up UI-logic from events handling #6

Open
azinit opened this issue Nov 8, 2021 · 0 comments
Open

Clean-up UI-logic from events handling #6

azinit opened this issue Nov 8, 2021 · 0 comments

Comments

@azinit
Copy link
Member

azinit commented Nov 8, 2021

EPIC: Decompose by subtasks if needed

Problem

Our components are "too smart" and it's difficult to maintain, debug and enhance

Accordingly to best practice, we should split UI and model logic explicitly. Another words - use more power from state-manager

Incorrect

image

image

Correct

https://github.com/cardbox/frontend/blob/master/src/pages/card/edit/model.ts#L45

P.S.

For any questions ping me 🚀

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant