Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
phoenix_live_view
Advanced tools
Phoenix LiveView enables rich, real-time user experiences with server-rendered HTML. For more information, see the initial announcement.
Note: Currently LiveView is under active development and we are focused on getting a stable and solid initial version out. For this reason, we will be accepting only bug reports in the issues tracker for now. We will open the issues tracker for features after the current milestone is ironed out.
As official guides are being developed, see our existing comprehensive docs and examples to get up to speed:
There are currently two methods for installing LiveView. For projects that require more stability, it is recommended that you install using the installation guide on HexDocs. If you want to use the latest features, you should follow the instructions given in the markdown file here.
All current Chrome, Safari, Firefox, and MS Edge are supported. IE11 support is available with the following polyfills:
$ npm install --save --prefix assets mdn-polyfills url-search-params-polyfill formdata-polyfill child-replace-with-polyfill classlist-polyfill shim-keyboard-event-key
Note: The shim-keyboard-event-key
polyfill is also required for MS Edge 12-18.
// assets/js/app.js
import "mdn-polyfills/CustomEvent"
import "mdn-polyfills/String.prototype.startsWith"
import "mdn-polyfills/Array.from"
import "mdn-polyfills/NodeList.prototype.forEach"
import "mdn-polyfills/Element.prototype.closest"
import "mdn-polyfills/Element.prototype.matches"
import "child-replace-with-polyfill"
import "url-search-params-polyfill"
import "formdata-polyfill"
import "classlist-polyfill"
import "shim-keyboard-event-key"
import {Socket} from "phoenix"
import LiveSocket from "phoenix_live_view"
...
0.8.0 (2020-02-22)
Phoenix.LiveView.Flash
in favor of :fetch_live_flash
imported by Phoenix.LiveView.Router
@inner_content
instead of invoking the LiveView directly:stop
tuples from LiveView mount
or handle_[params|call|cast|info|event]
is no longer supported. LiveViews are stopped when issuing a redirect
or push_redirect
put_live_layout
plug to put the root layout used for live routesredirect
and push_redirect
from mountphx:page-loading-start
and phx:page-loading-stop
on window for live navigation, initial page loads, and form submits, for user controlled page loading integrationphx-page-loading
to dispatch loading events above when the event is pushedenableLatencySim(milliseconds)
and disableLatencySim()
enableDebug()
and disableDebug()
to LiveSocket
for ondemand browser debugging from the web consoletransport_pid/1
to return the websocket transport pid when the socket is connectedlive_redirect
would reload the current URL instead of the attempted new URLFAQs
The Phoenix LiveView JavaScript client.
The npm package phoenix_live_view receives a total of 5,657 weekly downloads. As such, phoenix_live_view popularity was classified as popular.
We found that phoenix_live_view demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.