-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple typo fixes and rephrases. #176
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/bluebill1049/react-hook-form-website/p30xgset2 |
thanks for the fixes and feedbacks ❤️ i will take a look at the API page performance today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your work. some minor feedback
{* // Another possibility, any potential props passed to <Checkbox/> will be overrided. SomeName => Checkbox *} | ||
{/* Option 2: pass a JSX element to the Controller. */} | ||
{/* Note that any prop passed to the element will be overriden. */} | ||
{/* In this case, "SomeName" will be changed to "MyCheckbox". */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-Authored-By: Bill <bluebill1049@hotmail.com>
sorry about my English is driving you losing your patient :( I guess the lib itself does need some quality uplift in terms of English, so please help us and others when you have some more free time and PR is always welcome. 🙏 |
can you provide us with a video record of such behavior? |
Thank you for the prompt review and merge ⚡ .
I'm sorry, I didn't mean to be rude at all. After reading my initial comment, I can see how it could be interpreted in an offending way and I'm deeply sorry about that. That was unfair and disrespectful on my part, especially regarding the amazing work you and other contributors have already achieved on this documentation and on the library itself. Moreover, my english is far from irreproachable, so really don't take my words as a judgement or anything like that 🙏 . I just lost patience because it's a very repetitive work and I ended up being tired by it 😅 .
Yeah, it could always be improved, but most importantly, I think it does the job. I may contribute more should I replace Formik with React Hook Form, but I'm undecided at this point. Formik performances are awful in my ~20 inputs form for some reason, but I find kind of cumbersome having to pass
I can try. |
Thanks @gilbsgilbs for your help and understanding. In terms of performance, I can answer this one :) you don't need to pass innerRef instead Controller. the problem that I try to solve here is constant re-rendering, reconciler is cheaper but it becomes not so cheaper when your component trees grow. It's up to everyone which tool to use, personally i encountered an issue with it and provided with my own solution and share amongst the community. i think it's worth to give a try rather than just read what's on the doc. 👍 |
Apparently, the API page is way faster in private browsing mode, so it must be one of my extensions messing things up somewhere. However, the radio button remains very slow in private browsing mode: https://drive.google.com/file/d/16Z5AdlqTbikv_72mKcgoFM4yPZDKw6z3/view . Do you want me to open a specific issue for this?
Do you mean that wrapping all my inputs like this is acceptable in term of performances? import MUITextInput from '@material-ui/core/TextInput';
export function TextInput(props) {
return <Controller as={MUITextInput} {...props} />
} Combined with the |
Found issue, it's due to syntax highlight, I will find a way to optimize that. yes :) issue would be good.
It's up to you in terms of when to trigger validation, you don't need to enable however, even with onChange mode, there is still a difference. Even with |
Oh 🤯. That makes a lot of sense to me now. Thank you. I really like the approach after all. |
Disclaimer: I'm not a native english speaker, nor a user of this library.
I saw some typos and sentences I had trouble to understand on this website. Therefore I spent some time to try to improve it. I think it's better, but probably still very far from perfect since I'm neither a native english speaker nor a very good writer. I just hope that I haven't made more mistakes than there previously was 🤞 . Also, I did not review the entire website because I lost patience after a while.
Lastly, I wonder why the website is that slow. In particular, the API page makes my CPU crazy. Changing the
Register options
radio buttons makes my Firefox lag for one whole second for no apparent reason. It looks slightly better on Chrome, but far from good actually. Overall, it gives me a bad first impression on this library (that claims to be so much faster than Formik and others).