Help fixing multiple button submissions
Unanswered
Bee posted this in #help-forum
BeeOP
I have a form that's inside of a server component and I use a server Action to handle my input and make a post request that puts it inside my db however you can just click the button a bunch of times and it will submit the same thing over and over again how can I disable the button after the action is called since I can't use hooks?
1 Reply
Polar bear
One option is to use client component https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations#displaying-loading-state