📄️ LiveView API
We are going to be using Typescript in our examples because LiveViewJS is very thoroughly typed, which
📄️ LiveView API - `mount`
mount is called by the LiveViewJS runtime when your LiveView is first mounted
📄️ LiveView API - `render`
render is responsible for taking the context (i.e., state) of the LiveView and generating the HTML/CSS for the
📄️ LiveView API - `handleEvent`
handleEvent is called automatically by the LiveViewJS framework when a user action causes the browser to send
📄️ LiveView API - `handleParams`
Let's explore the handleParams method. Since the previous example (counterLiveView) did not use handleParams,
📄️ LiveView API - `handleInfo`
handleInfo is how server-side events (a.k.a Info) are handled. These server-side events are initiated by processes
📄️ User-Initiated Event with `handleInfo`
Search is a common use case where a user-initiated event might be handled by handleInfo.
📄️ Background Task with `handleInfo`
A "live" dashboard that updates with the latest metrics periodically is another use case that shines with server events
📄️ Pub/Sub with `handleInfo`
Pub/Sub is a common pattern for decoupling processes by allowing messages to be sent to a topic by one process and