I have a javascript hook that pushes an event to the server via pushEvent
. I can catch this event in the parent live view with handle_event/3
, but if I put the handle_event/3
in one of the live components within the parent live view I get a no matching clause error
? Does anyone know how to get events from the client in a live component?
1 Like
Figured it out, I needed to use pushEventTo
and I sent it to this.el
since the element the hook is mounted to lives in the live component I am trying to send the event to.
13 Likes