choojs / choo-devtools

💼 - Expose a choo instance on the window
MIT License
53 stars 17 forks source link

Allow filtering / aggregating of events #29

Closed chinedufn closed 6 years ago

chinedufn commented 6 years ago

What

This PR allows you to filter our events from being logged.

Why

If you have frequent repetitive events the current practice of logging everything indiscriminately can flood your console. More on this at #27

chinedufn commented 6 years ago

Now that I've played with choo-devtools a bit more I'm seeing that your original, simpler solution actually solves all of my problems!

I can just use a simple filter and then intercept whatever events I want, aggregate them however I want and log them whenever I want.

Sorry for not seeing this sooner! I'll update this PR to just use a simple filter!

chinedufn commented 6 years ago

@yoshuawuyts alright all done here - let me know if anything needs changing and I'm more than happy to.

yoshuawuyts commented 6 years ago

v2.5.0 :tada: