liveview component update code example
Example: liveview component update
@impl Phoenix.LiveComponent
def update(assigns, socket) do
# update logic
{:ok, socket}
end
@impl Phoenix.LiveComponent
def update(assigns, socket) do
# update logic
{:ok, socket}
end