Open bsparks opened 4 years ago
this is must have feature. I wonder why is this not merged even after almost a year?
Hi, any further work here? This seems like something which should works, when we want use addEventListener and listen events emited inside custom element. Thanks.
this will allow via configuration the addition of custom events that can be fired outside of the Preact world and consumed by the host page. they include a callback in the event payload in case you want async events (like if you let the host page take care of server calls by request from the component)