phoenix_live_view
Advanced tools
Changelog
0.17.0 (2021-10-21)
on_mount
changesThe hook API introduced in LiveView 0.16 has been improved based on feedback.
LiveView 0.17 removes the custom module-function callbacks for the
Phoenix.LiveView.on_mount/1
macro and the :on_mount
option for
Phoenix.LiveView.Router.live_session/3
in favor of supporting a custom
argument. For clarity, the module function to be invoked during the mount
lifecycle stage will always be named on_mount/4
.
For example, if you had invoked on_mount/1
like so:
on_mount MyAppWeb.MyHook
on_mount {MyAppWeb.MyHook, :assign_current_user}
and defined your callbacks as:
Changelog
0.16.4 (2021-09-22)
handle_params
to be defined for lifecycle hooksjoin_ref
on messagesChangelog
0.16.3 (2021-09-03)
on_mount
hooks calling view mount before redirecting when the hook issues a halt redirect.Changelog
0.16.2 (2021-09-03)
@inner_block
is missingphx-change
form recovery event being sent to wrong component on reconnect when component order changesChangelog
0.16.1 (2021-08-26)
phoenix_html
dependency requirementPhoenix.LiveViewTest.render_component/3
on_mount
declarationsChangelog
0.15.7 (2021-05-24)
Changelog
0.15.6 (2021-05-24)
handle_params
LiveViewTest.render_upload/3
when using channel uploads and progress callbackKeyError
on LiveView reconnect when an active upload was previously in progresscomponent/3
@socket/socket
argument on live_component/3
callChangelog
0.15.5 (2021-04-20)
upload_errors/1
for returning top-level upload errorsconsume_uploaded_entry/3
with external uploads causing inconsistent entries statepush_event
losing events when a single diff produces multiple events from different componentsChangelog
0.15.4 (2021-01-26)
live_render
's causing remound of child LiveView even when ID does not changeauto_upload: true
to fail to submit formmax_entries
is 1 instead of accumulating multiple file selectionsstatic_path
in open_browser
failing to load stylesheets