VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 70 forks source link

[Bug]: Duplicate Post Creation on Multiple Submit Button Clicks #511

Open saurabhbakolia opened 1 month ago

saurabhbakolia commented 1 month ago

Is there an existing issue for this?

Describe the bug

Duplicate Post Creation on Multiple Submit Button Clicks

Expected behavior

  1. Add client-side logic to disable the submit button after the first click until a response is received.
  2. Implement server-side checks to prevent the creation of duplicate posts by ensuring each post request is unique.

Additional Context: This issue affects data integrity and user experience, leading to potential confusion and redundancy in the data. Implementing both client-side and server-side measures will help mitigate this problem.

Add ScreenShots

image

On which device are you experiencing this bug?

Chrome, Windows

Record

github-actions[bot] commented 1 month ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.