Skip to content

Commit

Permalink
Extract evevents when writing new component. Closes #2703
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jun 19, 2023
1 parent 83d528c commit 6063d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/phoenix_live_view/diff.ex
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ defmodule Phoenix.LiveView.Diff do
{cdiffs, components} =
render_pending_components(socket, pending, %{}, cids, cdiffs, components)

{diff, cdiffs} = extract_events({diff, cdiffs})
{Map.put(diff, @components, cdiffs), components, extra}

%{} ->
Expand Down

0 comments on commit 6063d44

Please sign in to comment.