Skip to content

phoenix.live_view.handle_params.stop

View Markdown

A Phoenix LiveView handled URL params from a navigate or patch.

Source Phoenix LiveView Category Request Fields 12 honeybadger-elixir

Fields

12
FieldTypeDescription
event_typestringAllowed value: phoenix.live_view.handle_params.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_params.stop",
"url": "https://www.example.com/users/42?tab=activity",
"socket_id": "phx-F8ZBOg1zcBQDqDgAAACB",
"view": "MyAppWeb.UserLive.Show",
"assigns": {
"page_title": "Show user",
"current_user_id": 42
},
"params": {
"id": "42",
"tab": "activity"
},
"duration": 12000,
"request_id": "b3d5a1f0c2e4968a7d1b3f5c9e0a2d4f"
}