phoenix_live_view
Advanced tools
Changelog
0.20.0 (2023-09-22)
~L
sigil in favor of ~H
preload/1
in LiveComponent in favor of update_many/1
live_component/2-3
in favor of <.live_component />
live_patch
in favor of <.link patch={...} />
live_redirect
in favor of <.link navigate={...} />
live_title_tag
in favor of <.live_title />
render_block/2
in favor of render_slot/2
live_img_preview/2
in favor of <.live_img_preview />
live_file_input/2
in favor of <.live_file_input />
auto_upload: true
failing to propagate errors when any individual entry is invalidauto_upload: true
failing to auto upload valid entries errors when any individual entry is invalidauto_upload: true
config :phoenix_live_view, debug_heex_annotations: true
, which provides special HTML comments that wrap around rendered components to help you identify where markup in your HTML document is rendered within your function component treeassign_async
, start_async
, <.async_result>
and, AsyncResult
for declaratively handling async operations in a LiveView or LiveComponent.@myself
for Phoenix.LiveView.send_update/3
id
of <.live_img_preview>
Changelog
0.19.5 (2023-07-19)
close/1
callback of Phoenix.LiveView.UploadWriter
is now close/2
with the close reason passed as the second argument.write_chunk
callback of Phoenix.LiveView.UploadWriter
must now return the updated
writer state when an error occurs. Instead of {:error, reason}
, return {:error, reason, new_state}
.Phoenix.LiveView.UploadWriter
close.phx:navigate
window events when LiveView changes the history statePhoenix.LiveView.UploadWriter
close callback when LiveView goes down or connection is lost:host
causing errorsChangelog
0.19.4 (2023-07-10)
Phoenix.LiveView.UploadWriter
Changelog
0.19.3 (2023-06-21)
push_event
inside component update not being sent in some casesupload_errors/1
Changelog
0.19.2 (2023-06-12)
<input name="value" />
is usedChangelog
0.19.1 (2023-06-06)
accept
attribute on <.live_file_input>
to override default valuespreventDefault()
by other scriptsChangelog
0.19.0 (2023-05-29)
phx-feedback-for
attribute. An input name must be passed instead.let
attribute. Use :let
instead<%= live_img_preview(entry) %>
. Use <.live_img_preview entry={entry} />
instead<%= live_file_input(upload) %>
. Use <.live_file_input upload={upload} />
instead<%= live_component(Component) %>
. Use <.live_component module={Component} id=\"hello\" />
insteadinputs_for
, to pair with Ecto's new sort_param
and drop_param
casting:dom_id
to stream/4
in favor of stream_configure/3
render_block/2
in favor of render_slot/2
<%= live_img_preview(entry, opts) %>
. Use <.live_img_preview entry={entry} {opts} />
<%= live_file_input(upload, opts) %>
. Use <.live_file_input upload={upload} {opts} />
<.live_component id={...} />
(note the id
is required)download
linkphx-disconnected
bindings not firing on mount failuresChangelog
0.18.18 (2023-03-16)
:live_action
to be assigned in a componentassigns_to_attributes
JS.exec
command for executing commands defined on other element attributesChangelog
0.18.17 (2023-03-09)
handle_info
failing to be invoked in development after a code change with the Phoenix code reloadersubmitter
on form submit events.attr
when referencing structs:uploads
, :streams
, :live_action
, :socket
, :myself
will now raise in LiveView and LiveComponentChangelog
0.18.16 (2023-02-23)