SocietyClub / RCV

Ranked Choice Voting application
https://www.rankedchoice.info/
2 stars 0 forks source link

Adding the User ID hook and library. Now have a useFetch hook for all requests #35

Closed CoryTapply closed 2 years ago

CoryTapply commented 3 years ago

I'm not a huge fan of the error handling, partly because the backend isn't sending the correct datashape but also having to do the useEffect with three if statements for each request feels gross and not DRY. Though I think thats something we can iterate on when I think of better ideas