mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-17 11:29:06 +02:00
Refactor form submissions to use startTransition for improved performance
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user