diff --git a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex index 7e732c1..48e766c 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex +++ b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex @@ -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)