Auto-canceling, leak-free event pipelines in 320 bytes JS. Zero dependencies. - marsbos/zep

1 points•markolb•10 days ago•1 comment•

1 comment

markolb10 days ago
Like most devs, I really dislike the boiler- plate plumbing that comes with handling events. Not simple click handlers, but the more "complex" stuff like debounced search, throttled scrolling or resize handlers, or requestAnimationFrame synchronization. Every single time, I find myself setting up loose let-variables, timers, and manual cleanup. I wanted to solve this with an ultra-lightweight, composable solution.

Read the full thread on Hacker News →

Related stories