Passing comprehension data from inside function component up to call of that function component

What would you say is the most important technical differences between phx events and JS.push. So they are not identical under the hood? So the difference between the JSON returned by the LiveView.JS and the JavaScript internals of LV that handle phx events on the client side. I imagine that they are meant to have as little difference between them as possible.

Me too as I’ve never really used JS.push before. I was reading it as push_event which of course doesn’t even make sense since that is on the other side, ha. So ya, I thought you were trying to do something far more complicated like calling out to a JS event that would push back to the server or something. It seems like JS.push and a regular bare event should be handled the same.

1 Like