Gusti
March 19, 2020, 7:16pm
1
I have updated my test app installation from LiveView 0.3.0 to 0.9.0, and phoenix_html from 2.11 to 2.14, and made the changes that the docs specicify to my sources.
After this, the app.html.eex seems that is not loaded anymore. Only my own index.html.leex.
I couldn’t find any reference in the web regarding any other change I have to make to my app to keep working as before after this version update.
Any hints or help greatly appreciated.
Best regards,
Gusti
You’re definitely on 0.9 and not 0.10 or a Git release? The changelog for 0.10 mentions a breaking change around this idea specifically:
## 0.10.0 (2020-03-18)
### Backwards incompatible changes
- Rename socket assign `@live_view_module` to `@live_module`
- Rename socket assign `@live_view_action` to `@live_action`
- LiveView no longer uses the default app layout and `put_live_layout` is no longer supported. Instead, use `put_root_layout`. Note, however, that the layout given to `put_root_layout` must use `@inner_content` instead of `<%= render(@view_module, @view_template, assigns) %>` and that the root layout will also be used by regular views. Therefore, we recommend setting `put_root_layout` in a pipeline that is exclusive to LiveViews
### Bug fixes
- Fix loading states causing nested LiveViews to be removed during live navigation
- Only trigger `phx-update=ignore` hook if data attributes have changed
- Fix LiveEEx fingerprint bug causing no diff to be sent in certain cases
### Enhancements
- Support collocated templates where an `.html.leex` template of the same basename of the LiveView will be automatically used for `render/1`
- Add `live_title_tag/2` helper for automatic prefix/suffix on `@page_title` updates
## 0.9.0 (2020-03-08)
### Bug fixes
- Do not set ignored inputs and buttons as readonly
This file has been truncated. show original
Gusti
March 19, 2020, 7:23pm
3
$ mix deps.get
Resolving Hex dependencies…
Dependency resolution completed:
Unchanged:
connection 1.0.4
cowboy 2.7.0
cowlib 2.8.0
db_connection 2.2.1
decimal 1.8.1
ecto 3.3.4
ecto_sql 3.3.4
file_system 0.2.8
floki 0.26.0
gettext 0.17.4
html_entities 0.5.1
jason 1.2.0
mime 1.3.1
phoenix 1.4.16
phoenix_ecto 4.1.0
phoenix_html 2.14.0
phoenix_live_reload 1.2.1
phoenix_live_view 0.9.0
phoenix_pubsub 1.1.2
plug 1.9.0
plug_cowboy 2.1.2
plug_crypto 1.1.2
postgrex 0.15.3
ranch 1.7.1
telemetry 0.4.1
All dependencies are up to date
1 Like
Try adding the following line to your pipeline:
plug :put_live_layout, {MyWeb.LayoutView, "app.html"}
Gusti
March 20, 2020, 2:18pm
5
Yep! This worked!
Thanks!
Gusti
March 20, 2020, 2:22pm
6
Shouldn’t this be reflected in the docs?
It’s no longer in the master, so once you upgrade to 0.10.0 you’ll have to change it anyway. It was mentioned in the CHANGELOG though.
1 Like