Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: Adding a Loading state to buttons #2625

Closed
guoqqqi opened this issue Sep 26, 2022 · 2 comments · Fixed by #2630
Closed

[feat]: Adding a Loading state to buttons #2625

guoqqqi opened this issue Sep 26, 2022 · 2 comments · Fixed by #2630

Comments

@guoqqqi
Copy link
Member

guoqqqi commented Sep 26, 2022

Feature request

Please describe your feature

Currently, no limit is added to the buttons on all request interfaces. If the user has a poor network environment, there may be a situation where the create button is clicked multiple times in a row.

Describe the solution you'd like

Add a global custom Hook to change the state of the button to Loading when clicking on a button in the Create, Submit, Delete etc. category and restore the state when the request interface is successful.

@guoqqqi
Copy link
Member Author

guoqqqi commented Sep 26, 2022

Hello, @Silence-dream Can you help support this feature?

@Silence-dream
Copy link
Contributor

Hello, @Silence-dream Can you help support this feature?

I will create a pr to complete it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants