hocs
hocs copied to clipboard
debounce-handler: deal with component unmount
Hi there!
It's more of a question here. Let's say we have a callback with really big delay, in that case the callback might be invoked after the wrapped component had already been unmounted. Should debounce-handler
do something with that? e.g. it might prevent debounced function from firing after component unmount, or force to run it right before component unmount, to ensure the last call done while component is still alive.
Sounds good to me, do you mind to make a PR?
@deepsweet sure, I'll try to get to it on upcoming weekend
I just ran into this issue - has it been resolved?
This library made it easy to debounce with recompose - thanks!