# `Multitenancy.LiveView`
[🔗](https://github.com/marcosgz/multitenancy_phoenix/blob/v0.1.0/lib/multitenancy/live_view.ex#L1)

`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`.

# `on_mount`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
