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
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
Replace field value over validates other fields?
FieldMeta Generic required type arguments

Manage Active field & error handling
subField properties are type unknown

API of Pre-bound Field Components
Are validators not supposed to be defined inside of formOptions?

createFormHook Usage
False Positive Error on Field[`name`]
mode="array"
and iterating over each item, the name
field must be a nested item of the array field and cannot simply be the array item's index. (https://github.com/nickhudkins/reimagined-umbrella/blob/main/src/main.tsx#L92). This is somewhat related to type safe SubForms, and the overall form composition story, so it's possible that casting this as any
is fine for now and we'll figure out a better API later?Any way to configure default validators for fieldComponents defined in createFormHook?

Updating a specific form value in an array field?
How to set submit as disabled until form completed?
