Backpex.InitAssigns (Backpex v0.20.0)

Copy Markdown View Source

Ensures Backpex assigns are applied to all LiveViews attaching this hook.

Must run after your app's authentication on_mount hook so that socket.assigns already holds :current_user / :current_scope (or whatever your scope resolver looks for) by the time preferences are read. See guides/live_resource/user-preferences.md for the full ordering contract.

Summary

Functions

on_mount(atom, params, session, socket)