FormStore
Type that defines the store of a form.
Definition
FormStoreobjectelementSignal<MaybeValue<>HTMLFormElement>submitCountSignal<number>submittingSignal<boolean>submittedSignal<boolean>validatingSignal<boolean>touchedSignal<boolean>dirtySignal<boolean>invalidSignal<boolean>responseSignal<FormResponse>
The object also contains a key named
internalwhich provides API's that we need internally in the library. You should not access it. Instead, use the form, field and array methods we provide you.
Explanation
The properties of the form are reactive and can be used, for example, in the JSX area or the useTask$ hook.
Errors that occur when submitting the form are made accessible via the response object. In conjunction with the setResponse method, you can also use response to display custom feedback to your user.