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)
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)