Skip to content

Commit

Permalink
Adding an elixir-mode snippet for phoenix liveview handle info function.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgoku committed Dec 16, 2024
1 parent d0d4913 commit c82a568
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions snippets/elixir-mode/phx-lv-handle-info
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: phx-lv-handle-info
# key: phx-lv-handle-info
# --
@impl true
def handle_info(msg, socket) do
$0
{:noreply, socket}
end

0 comments on commit c82a568

Please sign in to comment.