Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Add "options" as second parameter to useDigitFormField #417

Open
Portals opened this issue Jul 24, 2020 · 0 comments
Open

Add "options" as second parameter to useDigitFormField #417

Portals opened this issue Jul 24, 2020 · 0 comments

Comments

@Portals
Copy link
Member

Portals commented Jul 24, 2020

Right now there's three parameters for useDigitFormField. name, valueFieldName and getValueFromEvent. To make using the hook easier, i.e. not having to provide every default value to change the one you need, a options object should be introduced as it is used in useDigitFormFieldArray. This move would bring more consistency with the two form field hooks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant