2021-03-29 11:27:44 -04:00
|
|
|
defmodule Home73kWeb.LiveHelpers do
|
2021-04-06 18:39:31 -04:00
|
|
|
@moduledoc """
|
|
|
|
Functions to make working with Phoenix LiveView a little easier.
|
|
|
|
"""
|
|
|
|
|
2021-03-29 11:27:44 -04:00
|
|
|
@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
|