phoenix liveview version: 0.20
we’ve had a long-standing issue in production with the only backtrace from our code being
lib/scorpion_web/components/activity/carousel.ex:5
ScorpionWeb.CarouselComponent.handle_event("...", %{"..." => [...], "..." =>
%{"..." => "..."}}, %Phoenix.LiveView.Socket{...})
where line 5 is
def handle_event("toggle_mute_carousel", _params, %{} = socket) do
muted = Map.get(socket.assigns, :muted, true)
{:noreply, assign(socket, muted: !muted)}
end
and the parameters sent are from a form submission in a completely different component
{
"_target": [
"filter_form",
"query"
],
"filter_form": {
"query": "United States"
}
}
or another example
lib/scorpion_web/components/activity/availability_wrap.ex:792
ScorpionWeb.AvailabilityWrapComponent.handle_event("...",
%{"..." => "..."}, %Phoenix.LiveView.Socket{...})
where line 792 is
def handle_event("show_full_availability_calendar", %{"date" => date_string}, socket) do
date = Date.from_iso8601!(date_string)
socket =
assign(socket, %{
selected_date: date,
preview_calendar: false
})
|> enqueue_async_availability_call()
{:noreply, socket}
end
sometimes the parameters have nothing to do with the event or component in question, and the error always shows the empty "..."
handle_event
.
i am not able to reproduce this error locally, unfortunately. has anyone seen this before?