Skip to content

Commit

Permalink
update mount/2 to mount/3 due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Mar 9, 2020
1 parent 7df48d5 commit fcf34ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/live_view_counter_web/live/counter.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule LiveViewCounterWeb.Counter do
use Phoenix.LiveView

def mount(_session, socket) do
def mount(_params, _session, socket) do
{:ok, assign(socket, :val, 0)}
end

Expand Down

0 comments on commit fcf34ac

Please sign in to comment.