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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m using react router with Ky for data fetching. Ky throws an HTTPError class which contains a Response object.
Is it possible to globally unwrap the Response from the HTTPError so that it works well with useRouteError?
Right now in my loaders I’m doing
But that’s annoying to do in every loader.
Is it possible to configure react router to look at the response key of incoming errors and use it if present?
Beta Was this translation helpful? Give feedback.
All reactions