phoenix_live_view
Advanced tools
Changelog
0.20.1 (2023-10-09)
auto_upload: true
when a file fails to preflightmeta()
method on File/Blob subclasses on JavaScript client to allow the client to pass arbitrary metadata when using upload/uploadTo
from hook. The %UploadEntry{}
's new client_meta
field is populated from this information.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.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 failures