home73k/lib/home73k_web/live/live_helpers.ex

14 lines
354 B
Elixir
Raw Normal View History

defmodule Home73kWeb.LiveHelpers do
@doc """
Performs the {:noreply, socket} for a given socket.
This helps make the noreply pipeable
"""
def live_noreply(socket), do: {:noreply, socket}
@doc """
Performs the {:ok, socket} for a given socket.
This helps make the ok reply pipeable
"""
def live_okreply(socket), do: {:ok, socket}
end