drom / resch

:herb: React JSON Schema Form
https://beta.observablehq.com/@drom/resch-reactive-schema
MIT License
9 stars 2 forks source link

debounce typing into text field #52

Open drom opened 6 years ago

drom commented 6 years ago

debounce = delay the update of the data until user stopped typing and the data, and typed data is reasonable.

https://levelup.gitconnected.com/debounce-in-javascript-improve-your-applications-performance-5b01855e086

https://levelup.gitconnected.com/debounce-react-and-redux-code-for-improved-performance-4b8d3c19e305

danziamo commented 6 years ago

difficult to implement, because component is not rendered unless new props come. One solution is to update two states: one on top with debounce, another local