react-debounce-render icon indicating copy to clipboard operation
react-debounce-render copied to clipboard

Allow externally defined shouldComponentUpdate

Open SudoPlz opened this issue 2 years ago • 1 comments
trafficstars

This commit allows the user to externally control immediate updates with a callback similar to shouldComponentUpdate. When that returns true, we can flush the debounced update, and immediately re-render.

SudoPlz avatar May 16 '23 10:05 SudoPlz

Thanks, this looks interesting. Would you mind adding the tests for that as well as the doc in the README.md?

podefr avatar May 16 '23 12:05 podefr