qwik icon indicating copy to clipboard operation
qwik copied to clipboard

[✨] Adding a signal dispatcher for component like in vue

Open astraldev opened this issue 2 years ago • 1 comments

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

astraldev avatar Mar 21 '23 12:03 astraldev