Open drom opened 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
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
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