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

Separate application logic/click handlers from components #32

Open
landonreed opened this issue Dec 21, 2020 · 0 comments
Open

Separate application logic/click handlers from components #32

landonreed opened this issue Dec 21, 2020 · 0 comments

Comments

@landonreed
Copy link
Contributor

The contents of these click handlers are beginning to like too much application logic being put in a presentation layer. Furthermore, these mutations, state updates etc might need to be reused elsewhere. I'm not super familiar with useSWR and the state updates, but it seems like all these could be made more reusable and stored in some kind of file that manages state, fetching, etc. Something like this: https://swr.vercel.app/getting-started#make-it-reusable

Originally posted by @evansiroky in #29 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant