Valeu Jorge! Não lembro dereito se inclui como fazer upload de arquivos mas achei esse artículo que talvez explica www.newline.co/@satansdeer/handling-file-fields-using-react-hook-form--93ebef46
Quick question: Is there a performance benefit to using FormProvider & useFormContext vs useController? I used useController when I created a component library because it seemed cleaner due to not requiring a FormProvider. But the rendering of my components isn't as clean as yours, so I'm considering just changing it up. BTW, love the videos! You do a great job of sharing tons of practical information without making it feel too rushed or drawn out.
Does it mean that each form has its own state? How I store all state in a main component and pass it down as props? I don't like the idea of importing useForm in every component.
Comparing prevErrors and errors objects in React.memo like this i would not work cause in js {} === {} is a always false, you could deep compare using "isEqual" from lodash
hi nice lessons. i get an error while passing props error like: ''Property 'methods' is missing in type '{ label: string; name: string; }' but required in type 'IReactHookFormTextFieldProps'.ts(2741) RHookTextFiledContainerMemo.tsx(6, 3): 'methods' is declared here.'' i didn't find the type of methods !!
Thank you for the RHF series. Your videos are super informative and have helped me a lot. You also have a very pleasant way of imparting knowledge.
Excellent Video I have ever watched!
Please make series on Material-UI Version-5
Just finished learning it, should have a video out soon about it!
Great video thank you. please more videos with mui 5 like select and date picker slider etc wtih react hook form typescript
Today I made my code very neat using your GREAT video. Thanks for doing this fantastic job. Subscribed!
Appreciate it Jin!
nicely done video man :) ... everything is just fast and on point to the given topic... god job
I was looking for something on this. Thanks.
Thanks so much for this video! I appreciate it my dude :)
Appreciate you taking the time to watch the video!
Awesome! Thanks for helping my desperate soul me Leo!! XD
nice, thanks a lot for the video!
Iawe Leo, cara esta série é sensacional, ótimo conteúdo! Não assisti todas as aulas ainda, mas terá sobre upload de arquivos ??
Valeu Jorge! Não lembro dereito se inclui como fazer upload de arquivos mas achei esse artículo que talvez explica www.newline.co/@satansdeer/handling-file-fields-using-react-hook-form--93ebef46
Obrigado Leo, vou olhar este artigo agorinha!!! Vlw
Nice video, how i can put mask in UiKit ?? Have some trick:?
Quick question: Is there a performance benefit to using FormProvider & useFormContext vs useController? I used useController when I created a component library because it seemed cleaner due to not requiring a FormProvider. But the rendering of my components isn't as clean as yours, so I'm considering just changing it up.
BTW, love the videos! You do a great job of sharing tons of practical information without making it feel too rushed or drawn out.
Im my case I also need to add onFocus check to memo because after submit I have focus on imput automaticly and dont get validation errors
Does it mean that each form has its own state? How I store all state in a main component and pass it down as props? I don't like the idea of importing useForm in every component.
You could use FormProvider and useFormContext
This is really good. Definitely has reduced so much code
Comparing prevErrors and errors objects in React.memo like this i would not work cause in js {} === {} is a always false, you could deep compare using "isEqual" from lodash
Hmm interesting, do you know what isEqual does under the hood for that method?
Please can You use React instead of Typescript?
hi nice lessons. i get an error while passing props
error like:
''Property 'methods' is missing in type '{ label: string; name: string; }' but required in type 'IReactHookFormTextFieldProps'.ts(2741)
RHookTextFiledContainerMemo.tsx(6, 3): 'methods' is declared here.''
i didn't find the type of methods !!