initialData-function that can return undefined changes the type of data after isSuccess check #5865
-
Hi A function like this:
Is there a way to get around this, other than checking data for undefined everywhere? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
interesting. seems like our generic gets
This seems to be because of our overloads, and it's the same for v5. Probably worth opening an issue 👍 |
Beta Was this translation helpful? Give feedback.
interesting. seems like our generic gets
undefined
added intoTData
, as the return type of the Query after checking for is success is now:This seems to be because of our overloads, and it's the same for v5. Probably worth opening an issue 👍