View Source PhxLocalizedRoutes.LiveHelpers (Phoenix Localized Routes v0.1.1)

Provides helpers for Phoenix LiveView applications

usage

Usage

Instructions how to use this module can be found in the Usage Guide.

Link to this section Summary

Functions

Assigns custom assigns from the config into the socker under the :loc key. The configuration module is passed as the first argument.

Link to this section Functions

Link to this function

on_mount(conf, params, session, socket)

View Source
@spec on_mount(
  PhxLocalizedRoutes.Config.t(),
  params :: map(),
  session :: map(),
  Phoenix.LiveView.Socket.t()
) :: {:cont, Phoenix.LiveView.Socket.t()}

Assigns custom assigns from the config into the socker under the :loc key. The configuration module is passed as the first argument.

The assigns can used as @loc.my_custom_assign

Used in PhxLocalizedRoutes.create_helper_module/2

See also: