I have both handle_event and handle_info handlers which pattern match on certain payloads
The problem mostly manifests in handle_info where (for better or for worse) I end up matching more deeply
Below are diffs directly from phoenix.new (note: phoenix.new tends to "spam" commits which makes the problem slightly worse: you end up with a lot of commits that may contain wildly invalid code)
- def handle_info(%{event: "play_now", payload: %{song: song}}, socket) do
+ def handle_info(%{event: "play_now", payload: %{}, socket) do