You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6fbf3f1
Browse filesBrowse the repository at this point in the historyBrowse files
Keep the submission outcome available until onSuccess settles so reset and field errors still target the successful submission after await. Reset uses the accepted snapshot while the callback is pending and retains the previous baseline until the request succeeds.
@@ -378,11 +414,15 @@ describe('useForm state derivation and error management', () => {
378
414
expect(formRef.current!.hasChanges).toBe(false);
379
415
});
380
416
381
-
it('applies reset(), setError(), and clearError() inside onSuccess/onError without leaking uncommitted outcomes to external UI during await',async()=>{
417
+
it('applies form helpers during callbacks and only resets to a new baseline after the request succeeds',async()=>{
0 commit comments