Skip to content
Discussion options

You must be logged in to vote

If I'm using useErrorBoundary: true on a particularly query, is there any way for typescript to know that my query can't get in an error state?

no. we recently did something for initialData, so that passing it would take away the loading state. However, every time we do this, we need overloads, which complicates the typings. It also only works if it's passed directly to the query. With initialData, that's what you'd mostly do, but with useErrorBoundary, you often set this globally.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexKMarshall
Comment options

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