-
TypeScript throws an error about the parameter being potentially undefined. How do I tell TypeScript that the query will run conditionally, only if the parameter exists? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jul 15, 2022
Replies: 1 comment
-
https://tkdodo.eu/blog/react-query-and-type-script#type-safety-with-the-enabled-option |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jeton-th
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://tkdodo.eu/blog/react-query-and-type-script#type-safety-with-the-enabled-option