You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the backend of rode-ui, we were able to proxy status codes with less explicit handling; however, adding a check for showing an unauthorized message meant lots of tedious checks that look like this on the front-end:
We're using fetch directly in a lot of places, might be desirable to pull that out into a single spot. There's a useFetch hook that might be the right spot, but all of the existing call sites would have to be updated.
This would also apply for showing a generic error message if the call fails for another reason.
The text was updated successfully, but these errors were encountered:
Comes out of #164:
On the backend of rode-ui, we were able to proxy status codes with less explicit handling; however, adding a check for showing an unauthorized message meant lots of tedious checks that look like this on the front-end:
We're using fetch directly in a lot of places, might be desirable to pull that out into a single spot. There's a
useFetch
hook that might be the right spot, but all of the existing call sites would have to be updated.This would also apply for showing a generic error message if the call fails for another reason.
The text was updated successfully, but these errors were encountered: