PhoenixFlags.UI.OnMount (PhoenixFlags v0.9.0)

Copy Markdown View Source

LiveView on_mount hook that injects the PhoenixFlags config module.

Use this when mounting the dashboard inside your app's existing live_session:

live_session :admin,
  on_mount: [
    {PhoenixFlags.UI.OnMount, MyApp.SystemConfig},
    ...
  ] do
  ...
end

Summary

Functions

on_mount(config_module, params, session, socket)