catch API response error
How do you guys use to guide the API 400 response? I'm controlling it in the error boundary wrapper component but I'm not sure if it is the right way, I could do it in in a try catch when calling the API
I need to implement some logic having as parameter the current route so I know if I should render a warning component or redirect to a page like /404
Considering I'm using pure React, react-query, suspense
0 Replies