News for hackers. Stuff that matters.
Re:Show HN: Kozmos – A Personal Library by df388dfsa8f9 on Thursday August 10, 2017 @01:15PM (#14981859)
Hi Azer. Something in the page is causing keys to be missed on all text inputs in the page (sign up, login). It is really annoying since it prevents me from typing at normal speed, probably a rough keyup event handler doing some validation?
Re:Show HN: Kozmos – A Personal Library by roadbeats on Thursday August 10, 2017 @01:33PM (#14982042)
Some users reported that but I can't reproduce it. Here is the code of the input component; https://gist.github.com/azer/87e6919fc24ad08839e01b1ee3158b4...
Re:Show HN: Kozmos – A Personal Library by ninjaranter on Thursday August 10, 2017 @05:04PM (#14984260)
It depends on where your prop is coming from - at a guess I assume you're passing the value up the chain to some ancestor who is doing a setState. This'll cause the entire tree to re-render, including this component, and will cause a lockup if you're editing while this happens.

You can probably resolve this by implementing a shouldComponentUpdate here, or just debounce change handler.

Re:Show HN: Kozmos – A Personal Library by mygo on Thursday August 10, 2017 @11:35PM (#14986403)
You need to debounce