I’m having some trouble updating a frontend app to Halogen 5. One of my previous coworkers copy/pasted this event source debouncing solution that was making its way around a few years ago:
Since the type of HalogenM
and the EventSource
module api changed between Halogen 4 and 5, this no longer compiles. The types also make little sense to me, and I’m not confident enough to just blindly replace this with something I think it means.
Can anyone here explain to me how to make this compatible with Halogen 5?