GamendWeb.OnMount.Theme (gamend_web v1.0.1215)

Copy Markdown View Source

on_mount helper for LiveView that ensures :theme is assigned on the socket. LiveViews can rely on @theme being present whether rendering via an HTTP request or a websocket socket lifecycle.

The theme provider owns caching and locale fallback. Resolve it on each LiveView mount so the current process locale is honored.

Summary

Functions

on_mount(atom, params, session, socket)