Kandev Agent
0ab6c03429
fix: invalidate ValidatedPopover in-flight submits on close
...
If the user clicked Submit and dismissed the popover before the request
settled, the next time they re-opened it would inherit `loading=true` (the
disabled-while-loading submit button was stuck) and a late rejection from
the previous session could repopulate `error` in the new one.
Track the submit via a `useRef` token, bump it on close, and ignore any
result/rejection whose token no longer matches. Also reset `loading` and
`error` on close so the next open starts clean. Adds a regression test
covering both the late-resolution and late-rejection paths.
Addresses CodeRabbit review on PR #759 .
2026-05-01 19:02:51 +01:00
..
2026-03-13 00:44:06 +00:00
2026-03-30 21:17:49 +01:00
2026-04-27 10:22:58 +01:00
2026-04-25 18:21:59 +01:00
2026-05-01 19:02:51 +01:00
2026-05-01 18:34:37 +01:00
2026-05-01 12:10:04 +01:00
2026-05-01 18:34:37 +01:00
2026-04-20 23:42:14 +01:00
2026-05-01 00:21:53 +01:00
2026-02-28 17:41:45 +00:00
2026-04-17 15:16:18 +01:00
2026-04-24 17:14:03 +01:00
2026-04-19 11:08:18 +01:00
2026-05-01 10:50:14 +01:00
2026-04-15 21:47:42 +01:00
2026-03-02 09:37:55 +00:00
2026-05-01 12:10:04 +01:00
2026-04-17 23:12:45 +01:00
2026-03-26 13:24:30 +00:00
2026-02-19 22:18:01 +00:00
2026-04-08 18:46:31 +01:00
2026-03-07 03:59:01 +00:00
2026-04-01 23:29:49 +01:00
2026-02-19 22:18:01 +00:00
2026-02-24 00:48:55 +00:00
2026-03-07 18:55:03 +00:00
2026-04-25 23:53:43 +01:00
2026-02-19 22:18:01 +00:00
2026-04-15 13:22:32 +01:00
2026-04-27 22:50:08 +01:00
2026-02-19 22:18:01 +00:00
2026-04-01 23:29:49 +01:00
2026-03-31 23:31:18 +01:00
2026-04-17 18:16:39 +01:00
2026-04-29 23:01:11 +01:00
2026-04-17 18:16:39 +01:00
2026-04-24 21:31:46 +01:00
2026-04-20 22:31:09 +01:00
2026-02-19 22:18:01 +00:00
2026-04-20 23:42:14 +01:00
2026-04-24 21:31:46 +01:00
2026-02-19 22:18:01 +00:00
2026-03-29 15:33:40 +01:00
2026-03-05 00:47:58 +00:00
2026-04-20 22:31:09 +01:00
2026-04-20 13:44:24 +01:00
2026-02-19 22:18:01 +00:00
2026-02-19 22:18:01 +00:00
2026-04-16 10:14:45 +01:00
2026-04-25 23:53:43 +01:00
2026-04-20 19:30:01 +01:00
2026-04-20 19:30:01 +01:00
2026-05-01 10:50:14 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-04-15 13:22:32 +01:00
2026-05-01 10:50:14 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-04-25 23:53:43 +01:00
2026-05-01 10:50:14 +01:00
2026-04-20 22:31:09 +01:00
2026-02-19 22:18:01 +00:00
2026-02-19 22:18:01 +00:00
2026-03-05 00:47:58 +00:00
2026-04-03 15:03:05 +01:00
2026-04-20 09:26:53 +01:00
2026-02-19 22:18:01 +00:00