Fix
All checks were successful
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2025-09-28 21:04:00 +02:00
parent b9210885a7
commit 71d3c77e1a

View File

@@ -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 {