react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Why is defaultValues required to correctly get type-safety?
Reusable AppField components with unions
Removing an entry from an array causes the array to receive invalid data
form.removeValue (with the correct index) but then when I check the form.state.values.roles there is a weird entry of whatever the last entry of the initial array was but now with just the name property of the whole Role object, which in turn causes my zod validation to fail.
I have a stackblitz where this odd behaviour can be reproduced: https://stackblitz.com/edit/tanstack-form-9vub96pu?file=src%2Findex.tsx
Assuming when I'm editing the user which has both Admin and User:...Form composition with async values
reset form state within dialog without useEffect?
if (closing) form.reset(). for some reason though, this doesn't actually reset the form. i assume it's something to do with the render vs state update cycle?
here's some of the relevant code cut down. is there something obvious going wrong here?...Generic type for onServer value in setErrorMap remains undefined

Form not submitting when adding onChange zod validator
canSubmit transitions to false in the form.Subscribe, however, the onSubmit callback doesn't get called. When I remove the onChange validator in place of manually calling zodSchema.parse() in the onSubmit is called, the schema validated, and my rpc executes.
Any ideas on how to debug this or what I'm doing wrong?
```...Manually triggering a field validation with form.validateField() not working?
Does the name prop accept any string?
form defaultValues doesn't clear with initial data retrieved
if (!country) return;
it deletes the value from the dropdown, but i'm left with my object like this: ...Default values issue
validate on submit then on change
Filling in field values from outside React (and TSF) is not taken into account?
How to trigger validation on submit (to show errors)?
onChange and show my errors only if the field is blurred like this:
```ts
export function getFieldError(field: AnyFieldApi) {
if (!field.state.meta.isBlurred) {...TanStack Form in Next.js: Best Practices for Pending Status, Success/Error Handling & Sonner Toasts?
`canSubmit` behavior, invalid form submission
The form state object has aIs there a way to change that behavior? If not, what's the appropriate workaround for the "don't ever let 'technically' invalid forms be submitted" use case?...canSubmitflag that is false when any field is invalid and the form has been touched (canSubmitistrueuntil the form has been touched, even if some fields are "technically" invalid based on theironChange/onBlurprops).
Get Initial Values
onBlurAsync on a field also called when submitting the form, bug or expected behavior?
Lack of Type Safety with Pre-bound Field Components?
useFieldContext. However, this means that whenever I'm actually using the pre-bound field, there are no guardrails preventing me from using a pre-bound field with a form value of a different type.
Demonstrating in code, it seems like a big danger that I can do this:
```...