0.1.3 #4
@@ -23,18 +23,12 @@ export const TextFieldInput = <A, R, O extends boolean = false>(options: {
|
|||||||
? {
|
? {
|
||||||
optional: true,
|
optional: true,
|
||||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||||
...yield* useOptionalInput({
|
...yield* useOptionalInput({ ...options, ...props as TextFieldOptionalInputProps<A, R> }),
|
||||||
...options,
|
|
||||||
...props as TextFieldOptionalInputProps<A, R>,
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
optional: false,
|
optional: false,
|
||||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||||
...yield* useInput({
|
...yield* useInput({ ...options, ...props as TextFieldInputProps<A, R> })
|
||||||
...options,
|
|
||||||
...props as TextFieldInputProps<A, R>,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const issue = React.useMemo(() => input.error.pipe(
|
const issue = React.useMemo(() => input.error.pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user