Replies: 4 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? |
Beta Was this translation helpful? Give feedback.
-
@astraldev is it solved? |
Beta Was this translation helpful? Give feedback.
-
This was a feature request, I am yet to test it. |
Beta Was this translation helpful? Give feedback.
-
I see, thanks @astraldev |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions