Skip to content

Global error handling #2284

Answered by JoviDeCroock
ianschmitz asked this question in Q&A
Feb 16, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

You can use something like the errorExchange the power of urql is found in its extensability layer. The integration parts like React, vue, ... is quite generic and then we have exchanges which allow you to tweak the lifetime of requests.

An alternative for an integration would be to wrap the useQuery from urql in your own version that throws

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@ianschmitz
Comment options

@ceefour
Comment options

@musjj
Comment options

Answer selected by ianschmitz
Comment options

You must be logged in to vote
3 replies
@tocoteron
Comment options

@velidan
Comment options

@Lornz-
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants