I wonder why it returns undefined when using useQuery if the value has not been loaded yet. #7851
Unanswered
Ubinquitous
asked this question in
Q&A
Replies: 1 comment
-
because it's not synchronous - it's asynchronous. What else should we do if we have to wait some time until data arrives over the network? you might want to look into |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I wonder why it returns undefined when using useQuery if the value has not been loaded yet.
I am curious as to why undefined is returned when using useQuery when the value has not yet been loaded.
Is there a reason not to have the code run synchronously until the value is not loaded?
Beta Was this translation helpful? Give feedback.
All reactions