Replies: 1 comment 1 reply
-
exhaustive matching is good, but it's a bit tedious because Type narrowing on the other hand is a very good pattern to show, it can go into the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to add the readme how to document exhaustiveness checking within Typescript so that users of
useQuery
can:data
isTQueryFnData
instead ofTQueryFnData | undefined
status
type is ever added (thereby letting consumers of react-query know that they have a new case to handle)For example:
Beta Was this translation helpful? Give feedback.
All reactions