@@ -200,10 +200,10 @@ export const field = <A, I, R, SA, SE, SR, const P extends PropertyPath.Paths<No
|
||||
export const useField = <A, I, R, SA, SE, SR, const P extends PropertyPath.Paths<NoInfer<I>>>(
|
||||
self: Form<A, I, R, SA, SE, SR>,
|
||||
path: P,
|
||||
): FormField<PropertyPath.ValueFromPath<A, P>, PropertyPath.ValueFromPath<I, P>> => React.useMemo(
|
||||
() => field(self, path),
|
||||
[self, ...path],
|
||||
)
|
||||
): FormField<
|
||||
PropertyPath.ValueFromPath<A, P>,
|
||||
PropertyPath.ValueFromPath<I, P>
|
||||
> => React.useMemo(() => field(self, path), [self, ...path])
|
||||
|
||||
|
||||
export namespace useInput {
|
||||
|
||||
Reference in New Issue
Block a user