Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: