How should I handle loading and empty state in this case? #791
Answered
by
anothertempore
devhyunjae
asked this question in
Q&A
-
This could be the happiest case if data returns 3 type
BUT the current api response only 2 type Which means, as the frontend point of view, I can't distinguish between loading and empty Any tips to handle this? |
Beta Was this translation helpful? Give feedback.
Answered by
anothertempore
Nov 26, 2020
Replies: 1 comment 3 replies
-
The data should be |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
devhyunjae
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The data should be
undefined
if it is not ready, which is the loading state.