-
Notifications
You must be signed in to change notification settings - Fork 0
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[✨] Adding a signal dispatcher for component like in vue #183
Comments
@astraldev can't you pass a signal via context or props, and then the child component can change the value, which notifies every listener including parents? |
@astraldev is it solved? |
Hello @astraldev. Please provide the missing information requested above. |
This was a feature request, I am yet to test it. |
I see, thanks @astraldev |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 signalDescribe alternatives you've considered
None
Additional context
If possible, able to accept mitosis integration
The text was updated successfully, but these errors were encountered: