phoenix_live_view
Advanced tools
Changelog
0.11.0 (2020-04-06)
Remove socket.assigns
during render to avoid change tracking bugs. If you were previously relying on passing @socket
to functions then referencing socket assigns, pass the explicit assign instead to your functions from the template.
Removed assets/css/live_view.css
. If you want to show a progress bar then in app.css
, replace
- @import "../../../../deps/phoenix_live_view/assets/css/live_view.css";
+ @import "../node_modules/nprogress/nprogress.css";
and add nprogress
to assets/package.json
. Full details in the Progress animation guide
phx:page-loading-stop
@foo.bar
only executes and diffs when bar changes@myself
assign, to allow components to target themselves instead of relying on a DOM ID, for example: phx-target="<%= @myself %>"
enableProfiling()
and disableProfiling()
to LiveSocket
for client performance profiling to aid the development processChangelog
0.9.0 (2020-03-08)
:use
on child LiveViewsfalse
in the router and on mountfetch_flash
before):flash
is given as an assignsocket.router
MFArgs
as the :session
option in the live
router macroChangelog
0.8.1 (2020-02-27)
phx-disable-with
on live redirect and live patch linksredirect
on the serverundefined
to string when issuing pushStateChangelog
0.6.0 (2020-01-22)
mount/2
has been deprecated in favor of mount/3
. The params are now passed as the first argument to mount/3
, followed by the session and socket.handle_params
Changelog
0.5.2 (2020-01-17)