-
Beta Was this translation helpful? Give feedback.
Answered by
boschni
Aug 25, 2020
Replies: 1 comment
-
Hi @ryands17! When specifying |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryands17
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ryands17! When specifying
setQueryData<Todos>
you are basically saying the result should be of typeTodos
. BecausesetQueryData
sets the query status to success, and success means the data is there, this would be correct. You could specify the result assetQueryData<Todos | undefined>
to also allowundefined
.