Refactor form submissions to use startTransition for improved performance

This commit is contained in:
Owen
2026-09-04 17:15:20 -04:00
parent 44b0186044
commit 88770ff97b
11 changed files with 100 additions and 23 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ export function OrgLabelForm({
<form
id="org-label-form"
className="flex flex-col gap-4 px-0.5"
action={async () => {
onSubmit={async (e) => {
e.preventDefault();
if (await form.trigger()) {
onSubmit(form.getValues());
}