React-Hook-Form watercooler
July 31, 2019 at 1:06amReact-Hook-Form watercooler
July 31, 2019 at 1:06amJuly 31, 2019 at 2:25am
Good idea :)
July 31, 2019 at 10:32pm
Thanks :)
Thanks heaps for the
link
issue, my eyes were bleeding over that problem..August 7, 2019 at 12:40am
August 7, 2019 at 10:34am
it would be amazing to make it work tho, but i haven't got time to work on it. (spend most of my time on web atm)
August 11, 2019 at 10:54am
just asking, why is there a need to wrap the formState in an object? is it better if we could just spread it off just like other property? and why errors is not part of a formState?
August 11, 2019 at 11:47pm
good question
I guess
errors
should be part of formState
that was a bad decision when i created the
API
What i should have done is group
errors
inside formState
or like you said just flat them all.ah i do remember why i have decided to group them in
formState
, it was easier to document them in a group https://react-hook-form.com/api#formState at the timebut yea i regret not having errors in there
August 12, 2019 at 11:12am
hey probably not right now. it's going to be a breaking change. For now i will leave
errors
out there, until the next major release i will fix this issuethanks for picking this up tho 🙏🏻
plus pick up those other issues as well.
hey probably not right now. it's going to be a breaking change. For now i will leave
errors
out there, until the next major release i will fix this issueI will wait for that :)
August 15, 2019 at 2:42pm
hm, how do we do validation of customInputs? I'm stuck with react-select over here, will probably remove it at some point but would be great to have validation on it meanwhile. I'm using https://github.com/react-hook-form/react-hook-form/blob/master/examples/customInput.tsx as reference. however adding a validate function to register() does not seem to do anything. triggerValidation does not do anything either..
September 21, 2019 at 1:50am
This conversation has been locked