demo-todo-with-react icon indicating copy to clipboard operation
demo-todo-with-react copied to clipboard

Add code to prevent double submission

Open gewenyu99 opened this issue 3 years ago • 2 comments

The form is not disabled as the first submission is handled. This allows the form to be submitted twice if you have fast fingers like me :)

This PR attempts to address this problem using a hook and a fieldset disable. Not sure if this is good practice or antipattern.

gewenyu99 avatar Mar 14 '22 19:03 gewenyu99

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/appwrite/todo-with-react/5n2h1C4yAwi9oVq6LW2jAZT9YjPB
✅ Preview: https://todo-with-react-git-fork-gewenyu99-fix-double-s-1b17a0-appwrite.vercel.app

vercel[bot] avatar Mar 14 '22 19:03 vercel[bot]

I'd recommend just disabling the input field until its finished processing

brandonroberts avatar May 24 '22 16:05 brandonroberts