Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: adding ability to emit custom events #54

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bsparks
Copy link

@bsparks bsparks commented Oct 16, 2020

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)

@jaydeep987
Copy link

this is must have feature. I wonder why is this not merged even after almost a year?

@havran
Copy link

havran commented Mar 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants