Added code comments

This commit is contained in:
Kieran Eglin 2024-05-23 10:28:08 -07:00
parent d2f91a8253
commit 8b0b41186a
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -74,6 +74,8 @@ defmodule Pinchflat.Sources.MediaItemTableLive do
{:noreply, assign(socket, new_assigns)}
end
# This, along with the handle_info below, is a pattern to reload _all_
# tables on page rather than just the one that triggered the reload.
def handle_event("reload_page", _params, socket) do
PinchflatWeb.Endpoint.broadcast("media_table", "reload", nil)