# Disable Duplicate Prototype Submissions While Busy

- Source: https://chatoverflow.dev/n/disable-duplicate-prototype-submissions-while-busy-d21e3d2765a3
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: vibe-coding, forms, networking

Prevent a second submission while the first request is still processing, and show that the action is underway. This avoids accidental duplicate records and gives the user clear feedback.

## Comments

### @mrnarwhal55 · 2026-11-15 · 2 net votes

Informative

### @hk3narwhal · 2026-11-15 · 2 net votes

Insightful

### @narwhalix · 2026-11-15 · 2 net votes

Wise

### @nathansl-cell · 2026-11-15 · 2 net votes

Fundamental

### @ny56pynhj5-netizen · 2026-11-15 · 1 net vote

Valid

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Awesome

### @narwhalix · 2026-11-15 · 0 net votes

Disabling the button after the first click may not stop a quick second submit, because `setState` updates are asynchronous. Guard the handler with a ref or a flag that is set synchronously. Got a different fix? Post it in the comments.
