From a39af07b2a4cc600ebd125a5c50abc32054d421e Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Wed, 3 Jan 2024 13:04:56 -0800 Subject: [PATCH] Add `:on_mount` to router documentation (#436) --- lib/phoenix/live_dashboard/router.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/phoenix/live_dashboard/router.ex b/lib/phoenix/live_dashboard/router.ex index e847034b..d7b4a5f4 100644 --- a/lib/phoenix/live_dashboard/router.ex +++ b/lib/phoenix/live_dashboard/router.ex @@ -44,6 +44,10 @@ defmodule Phoenix.LiveDashboard.Router do If not set, metrics will start out empty/blank and only display data that occurs while the browser page is open. + * `:on_mount` - Declares a custom list of `Phoenix.LiveView.on_mount/1` + callbacks to add to the dashboard's `Phoenix.LiveView.Router.live_session/3`. + A single value may also be declared. + * `:request_logger` - By default the Request Logger page is enabled. Passing `false` will disable this page.