phoenix_live_view
Advanced tools
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)
Changelog
0.18.15 (2023-02-16)
JS.transition
applying incorrect classestype="reset"
inputs and buttons