Upgrading a LiveView-using Phoenix 1.7 app to Phoenix 1.8, I found this information on using the simplified layout setup helpful.
After faithfully enacting the changes found at PhoenixDiff, I needed to wrap each LiveView HEEx template with:
<Layouts.app flash={@flash} current_user={@current_user}>
...
</Layouts.app>
And in MyAppWeb.Layouts:
attr :current_user, :map, default: nil # added
slot :inner_block, required: true
def app(assigns) do
...
end
(Using @current_user because 1.8’s scopes are not yet configured/in use in my 1.7-initiated app. I’ll see about switching to scopes next.)




















