| ▲ | Zep.js: tiny event pipeline with auto-cleanup, debounce and AbortSignal(github.com) | |
| 1 points by markolb 6 hours ago | 1 comments | ||
| ▲ | markolb 6 hours ago | parent [-] | |
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. | ||