form
form copied to clipboard
🤖 Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit.
### Describe the bug Calling useStore with a selector that returns an object or array field can cause weird behaviour. Results have varied from the maximum update depth, to field's...
This is just an attempt at adding a svelte integration. It is a draft until, if ever, we get it building and tested. TODO: - [ ] successfully build it...
### Describe the bug when using valibot together with next.js server actions the typescript types dont seem to work out. 1. typing issues in `useForm` together with `useTransform`. ``` Argument...
### Describe the bug ```ts useForm({ defaultValues: { status: params.get('status') // assume this is active for example } }) ``` ```ts {(field) => ( .... field.setValue(undefined) // doesn't work. it...
This implements a Svelte adapter for the form package. API-wise it's somewhere inbetween Solid and React (`createForm` is used like Solid's, getting the field state from within a snippet is...
Enables functionality like: ```typescript const form = useForm({ defaultValues: { firstName: '', lastName: '', }, validators: { onBlur: ({ value }) => { console.log('ON Blur:', value) }, onMount: ({ value...
Is it possible to keep form unvalidated until first submission? something like enableAutoValidationAndValidate() in submit ?
### Describe the bug This component is used in various forms with different fields, so it does not receive any default values. Everything worked fine until version 1.0.4, and the...
I have two fields that are arrays of user objects. How can i validate that user.name are unique across both arrays?
Instead of using the arrow function: ```vue (e) => { e.preventDefault() e.stopPropagation() form.handleSubmit() } ``` we can just use [event modifiers](https://vuejs.org/guide/essentials/event-handling#event-modifiers) like this: ```vue @submit.prevent.stop="form.handleSubmit" ``` enhancing readability ✨