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
Can I add more on an validator onChange besides zod validator?
React hook to extract errors?
mode="array" with appField in dynamic array
ExamSegmentField).
In my main form I now want to show all the segments the user has added like so:...
form.Field ts error

eslint no-unused-var triggers on AppField rendering (vite/react/js)
pnpm create vite my-react-app --template react with tanstack form mark this field as unused var?
Ofc it goes away if I destruct const { Component } = field;, but I prefer to keep this inlined.
```jsx
<form.AppField name="{name}">...
Suggested way of handling multiple checkboxes with indeterminate state on group headers
useStore, Subscribe, transform, listeners, Linked fields etc and I am not sure which approach would render the easiest solution with Tanstack Forms philosophy. I'm trying to avoid splitting the code too much as so far I only got mess of passthrough checked/indeterminate states.
I have:...
array with form composition
Form data after validation
canSubmit true on mount
Zod Types not inferring
formOpts.onSubmit example
Tanstack Form + Start with isSubmitting handling?
<form action={handleForm.url} method="post" encType={'multipart/form-data'}>
<form action={handleForm.url} method="post" encType={'multipart/form-data'}>
How do I use a form with React Query for debounced search/filter?
Forms with a CMS
canSubmit behavior is described inaccurately in documentation
[TypeScript] Passing field.state.meta.errors to child component
StandardSchemaV1Issue[] when you inspect the individual objects but when passing it to the child, I get a TypeScript error like this:
```
Type 'UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<{ email: string; password: string; }, "email", FieldValidateOrFn<{ email: string; password: string; }, "email", string> | undefined, ZodObject<{ email: ZodString; password: ZodString; }, "strip", ZodTypeAny, { ...; }, { ...; }>>>[]' is not assignable to type 'StandardSchemaV1Issue[]'.
Type 'UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<{ email: string; password: string; }, "email", FieldValidateOrFn<{ email: string; password: string; }, "email", string> | undefined, ZodObject<{ email: ZodString; password: ZodString; }, "strip", ZodTypeAny, { ...; }, { ...; }>>>' is not assignable to type 'StandardSchemaV1Issue'.
Type 'undefined' is not assignable to type 'StandardSchemaV1Issue'....Custom ConditionalField
role field which can be set to either "User" | "Admin".If
"Admin" is set a new required field reason should appear.
I have seen approaches where users add an onChange listener to the field role and it works fine. However this is a simple usecase. My actual use case is a big multi step form where the field might be rendered somewhere completely different.
I generally don't like separating logic (In this case the listener) and rendering (of the field in some other subform later).
...server validation error not appear in field.meta.errors
Input masks
dd.MM.yyyy format that auto adds the dots or jumps over them if they're input manually. We've all seen that kind of input.
I've checked Maskito but it doesn't play nicely with controlled inputs - it will parse on every input and replace the value, meaning there's no way to edit an existing value in the field (deleted chars get autofilled with 0).
Cheers...use external values for form state values