Skip to content

feat : same task add on multiple button click#1254

Merged
aryandas2911 merged 2 commits into
aryandas2911:mainfrom
Prashant-kumar-8312:fix/duplicate-task-added
May 29, 2026
Merged

feat : same task add on multiple button click#1254
aryandas2911 merged 2 commits into
aryandas2911:mainfrom
Prashant-kumar-8312:fix/duplicate-task-added

Conversation

@Prashant-kumar-8312
Copy link
Copy Markdown
Contributor

📌 Description

Fixed the duplicate task creation issue caused by multiple clicks on the "Add Task" button before the task creation request completed.

The button is now disabled during submission, preventing repeated requests and ensuring only one task is created per action.

🔗 Related Issue

Closes #1248

🛠 Changes Made

  • Added loading state management for task creation
  • Disabled the "Add Task" button while the API request is pending
  • Prevented duplicate submissions from rapid multiple clicks
  • Added loading feedback during task creation

✅ Checklist

  • Code runs locally
  • Followed project structure
  • No console errors
  • Properly tested changes
  • Linked the issue

🚀 Notes for Reviewers

The fix ensures users cannot accidentally create duplicate tasks by clicking the button multiple times during an ongoing request.

@Prashant-kumar-8312 Prashant-kumar-8312 force-pushed the fix/duplicate-task-added branch from 2015ebd to b5c403a Compare May 29, 2026 07:42
@aryandas2911 aryandas2911 merged commit 1738b39 into aryandas2911:main May 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG : Duplicate Task Added on Multiple Button Clicks

2 participants