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

[bug]: Button with useFormStatus #6734

Open
2 tasks done
NATNgoc opened this issue Feb 22, 2025 · 0 comments
Open
2 tasks done

[bug]: Button with useFormStatus #6734

NATNgoc opened this issue Feb 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@NATNgoc
Copy link

NATNgoc commented Feb 22, 2025

Describe the bug

I have used Button from Shadcn UI for my form. In this form, I'd used useFormStatus to take the pending state for my disable button. But there is something wrong:

  1. Button still invoke server action but not display loading spinner
  2. If I click the button twice, loading is there already!
    My repo: https://github.com/NATNgoc/-Ticket-Bounty-ShadcnUI

Affected component/components

Button

How to reproduce

  1. Go to ticket-upsert-form.tsx in /src/features/ticket/components
  2. Run the app and check the form at URL localhost:3000/tickets
  3. Double click to find out the problem

Codesandbox/StackBlitz link

No response

Logs

System Info

Brave, Windows 11

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@NATNgoc NATNgoc added the bug Something isn't working label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant