Skeleton.Button loading prop does not work
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
Import Skeleton and use any Skeleton component (Avatar, Button, Input etc.) add prop loading={false}
to it
<Skeleton.Avatar loading={false} />
What is expected?
Skeleton should not load
What is actually happening?
Skeleton is loading
Environment | Info |
---|---|
antd | 4.3.4 |
React | 16.13.1 |
System | MacOS |
Browser | Chrome 83, FF 77 |
This bug only exists for other Skeleton components. It works for normal Skeleton
<Skeleton loading={false} />
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Adding skeleton effect to form fields until props data is loaded
I'm passing JSON data pulled off a REST API via props to the component below. Since I don't pre-set a value to the...
Read more >react-loading-skeleton
Make beautiful, animated loading skeletons that automatically adapt to your app.. Latest version: 3.1.0, last published: 8 months ago.
Read more >Skeleton
When a resource needs long time to load. When the component contains lots of information, such as List or Card. Only works when...
Read more >Implementing Skeleton Screens In React
A skeleton screen is a version of the UI that doesn't contain actual ... using React Loading Skeleton, to show how a skeleton...
Read more >Material UI in React #9 - Loading Skeleton - YouTube
Hello fellow react devs! I am happy to share part number nine of the series. In today's episode you will learn how to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t think we need this props, if we add this props the api look like:
It’s wired.
You can use Skeleton.Button like:
This is my opinion, what do you think?
I still think it is weird. @afc163 @zombieJ @fireairforce What do you think?