Replies: 2 comments 1 reply
-
We should definitely update Ariakit Form to align with the new React patterns, but I haven't given it much consideration yet. I'm open to suggestions. |
Beta Was this translation helpful? Give feedback.
-
I do find it easier to just use the base function submit(formData: FormData) {
// ...
}
return <form action={submit}>...</form> The only difficulty with that is that some ariakit components don't set a const form = useFormStore(...);
const formAction = form.useSubmit(() => {
// can be server action
});
return <form action={formAction}>...</form>
// or maybe still have ariakit's own Form...
return <Form action={formAction}>...</Form> |
Beta Was this translation helpful? Give feedback.
-
With the release of React 19 beta, there seems to be quite a lot of work done towards forms. I'm curious if any ideas, thoughts, opinions, feelings, etc have been given towards how forms in Ariakit work to better align with these new React features.
Beta Was this translation helpful? Give feedback.
All reactions