You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful when building complex components using JavaScript and wanting them to talk to a parent component, without using extra request to the server just to pass the event.
Another advantage is that when doing a handler on a hydro tag, we know the context of the event, when having the same component with the same handler rendered more than once, so:
Inside Hydro component view there should be a way to dispatch a JS event and then catch it on the parent component:
Child.cshtml:
Parent.cshtml:
It would be useful when building complex components using JavaScript and wanting them to talk to a parent component, without using extra request to the server just to pass the event.
Another advantage is that when doing a handler on a
hydro
tag, we know the context of the event, when having the same component with the same handler rendered more than once, so:The text was updated successfully, but these errors were encountered: