Skip to content

Commit 31634df

Browse files
fi11erikras
authored andcommitted
fix(useField): add form instance tracking (#27)
1 parent 584ade2 commit 31634df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const useField = (name, form, subscription = all) => {
3535
},
3636
subscription
3737
),
38-
[name, ...subscriptionToInputs(subscription)]
38+
[name, form, ...subscriptionToInputs(subscription)]
3939
)
4040
let { blur, change, focus, value, ...meta } = state || {}
4141
delete meta.name // it's in input

0 commit comments

Comments
 (0)