qwik
qwik copied to clipboard
[✨] Adding a signal dispatcher for component like in vue
Is your feature request related to a problem?
I want to create a component that emits a signal whenever a button is clicked and the event should be handled by the parent component but I am using @builder.io/mitosis to build. Other than that, it is practically impossible for a component to emit a signal.
Describe the solution you'd like
Creating a hook for signal emission or just using a this.emit('<SIGNALNAME>') to emit a signal
Describe alternatives you've considered
None
Additional context
If possible, able to accept mitosis integration