Skip to content

Separate application logic/click handlers from components #32

@landonreed

Description

@landonreed

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions