Open GirlBossRush opened 9 years ago
The debounce handler filter seems to be cleaner. The implementation could be similar to the internal key
filter, you basically wrap the passed in handler and return a new handler.
The key filter was the inspiration for sure! While not totally unavoidable, it'd be great to consider manually added event listeners an antipattern.
Cheers.
I've created a generic debouncer for components that have potentially expensive event handlers.
It'd be awesome if components could debounce with a directive.
Do you have any thoughts on either approach?
Thank you!