0.1.4 #5

Merged
Thilawyn merged 67 commits from next into master 2025-10-02 18:18:23 +02:00
Showing only changes of commit 71d3c77e1a - Show all commits

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 {