Is there anyway to use isLoading
prop?
#894
Answered
by
deadcoder0904
deadcoder0904
asked this question in
Q&A
-
I want to use {isLoading ? (
<SkeletonDarkTheme>
<Skeleton
containerClassName="inline-block border-2 rounded-full h-9 w-9 bg-primary-light overflow-hidden leading-none"
className="h-full"
/>
</SkeletonDarkTheme>
) : (
<img
className="inline-block h-9 w-9 rounded-full border-2 bg-blue-500"
src={profile_image || '/default-pic.png'}
alt={`Profile picture of ${username}`}
/>
)} Is there any prop for that as my images get loaded slowly & the last one loads first & then bubbles up slowly so I'd prefer to show a loading skeleton while they are loading. |
Beta Was this translation helpful? Give feedback.
Answered by
deadcoder0904
Mar 27, 2022
Replies: 1 comment
-
The answer can be found here :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
deadcoder0904
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer can be found here :)