Skip to content

phoenix.live_view.handle_event.stop

View Markdown

A Phoenix LiveView handled a client event such as phx-click.

Source Phoenix LiveView Category Request Fields 12 honeybadger-elixir

Fields

12
FieldTypeDescription
event_typestringAllowed value: phoenix.live_view.handle_event.stop.
urlstringURL of the LiveView at the time of the event.
socket_idstringLiveView socket ID.
viewstringLiveView module name.
componentstringLiveComponent module name, if applicable.
assignsobjectSocket assigns at the time of the event.
assigns.*anyAdditional caller-defined keys.
paramsobjectParams passed to the event handler.
params.*anyAdditional caller-defined keys.
eventstringEvent name for handle_event events.
durationnumberDuration in microseconds.
request_idstringRequest ID generated at LiveView mount and shared by events on the same socket.

Example

{
"event_type": "phoenix.live_view.handle_event.stop",
"url": "https://www.example.com/users/42/edit",
"socket_id": "phx-F8ZBOg1zcBQDqDgAAACB",
"view": "MyAppWeb.UserLive.Show",
"assigns": {
"page_title": "Edit user",
"current_user_id": 42
},
"params": {
"user": {
"name": "Jane Doe"
}
},
"event": "save",
"duration": 28000,
"request_id": "b3d5a1f0c2e4968a7d1b3f5c9e0a2d4f"
}