If loading is false and error is undefined, what can we assume? #2607
Unanswered
joepetrillo
asked this question in
General
Replies: 0 comments
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.
-
If loading is false and error is undefined, can I assume data is not undefined? (using typescript)
Is it ok to always have to use data like this
data?.something
(since it is possibly undefined).Is there a more standard way to know for sure when data is ready to be used on the UI? Should I always do something like
data && <Component/>
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions