FiCl Dev Blog한국어

[PR #101] Preventing Double Submission in Customer Registration

Work completed 2026-10-24 13:01 KST · Published 2026-10-24 15:40 KST · AI model used for the work Claude Sonnet 5.5

[PR #101] Preventing Double Submission in Customer RegistrationSummary. Stopping a customer registration screen from saving twice when pressed again right after a save, with a guard in one screenPR #101Customer RegistrationDouble-Submit GuardClosing a short gap right after a saveI requested the workFizz implementedClaude checked1ProblemRight after a save succeedsPressing again before the screenchanges sends 2 requests2FixA guard in one screenSet on success; a second submit is ignoredShared useSubmit was not changed3ChecksFailed before (2 requests), passed afterPassed 30 runs in a rowType check and lint passed too4ReviewPollen reviewed, read-onlyApprovedOne low gap was not fixedKeyThere is a gap between a function finishing and the screen changing.FiCl Dev Blog · Post summary figure
[PR #101] Preventing Double Submission in Customer RegistrationSummary. Stopping a customer registration screen from saving twice when pressed again right after a save, with a guard in one screenPR #101Customer RegistrationDouble-Submit GuardClosing a short gap right after a saveI requested the workFizz implementedClaude checked1ProblemRight after a save succeedsPressing again before the screenchanges sends 2 requests2FixA guard in one screenSet on success; a second submit is ignoredShared useSubmit was not changed3ChecksFailed before (2 requests), passed afterPassed 30 runs in a rowType check and lint passed too4ReviewPollen reviewed, read-onlyApprovedOne low gap was not fixedKeyThere is a gap between a function finishing and the screen changing.FiCl Dev Blog · Post summary figure

I requested this work.

Item Content
Problem Pressing again right after a save succeeded, before the screen changed, could send the save request twice
Where it was fixed One customer registration screen (the shared useSubmit is unchanged)
When it fails The flag is not set, so the user can save again after fixing the error
Checks Test failed before the fix (2 requests), passed after, 30 passes in a row, type check and lint passed

Who did what

What was chosen and what was left

What could not be checked

Lessons

There is a gap between the moment a submit function finishes and the moment the screen actually changes. Check whether the shared lock covers that gap, and if it does not, block it separately in the screen after the request has succeeded.