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