-
hey I want the query result type to be something like: { data: Data; error: undefined } | { data: undefined; error: Error } so that I’m forced to check for error before accessing data. |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
May 15, 2025
Replies: 1 comment 1 reply
-
I’d do that with error boundaries and |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MhL5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’d do that with error boundaries and
throwOnError