Multitenancy.LiveView (multitenancy_phoenix v0.1.0)

Copy Markdown View Source

on_mount hook resolving the site from the socket host, for both the disconnected and the connected mount.

live_session :default, on_mount: [Multitenancy.LiveView] do
  live "/counter", CounterLive
end

Assigns :current_site and :current_theme.

Summary

Functions

on_mount(atom, params, session, socket)