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
I'm trying to catch a bunch of 404 errors that are scattered throughout my app (running on next.js with next-urql).
They have a consistent message in the API, so rather than catching each query, I'm hoping I can pop something into onError in the errorExchange and send a prop to the _app.js so I can render a 404.
Might be barking up the wrong tree and there's a better way!
So, best way to send someone to a 404 from the errorExchange?
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 trying to catch a bunch of 404 errors that are scattered throughout my app (running on next.js with next-urql).
They have a consistent message in the API, so rather than catching each query, I'm hoping I can pop something into onError in the errorExchange and send a prop to the _app.js so I can render a 404.
Might be barking up the wrong tree and there's a better way!
So, best way to send someone to a 404 from the errorExchange?
Beta Was this translation helpful? Give feedback.
All reactions