LiveData behaviour (live_data v0.1.0-alpha0)

Documentation for LiveData.

Link to this section Summary

Link to this section Types

@type rendered() :: any()

Link to this section Callbacks

Link to this callback

__tracked__render__(assigns)

@callback __tracked__render__(LiveData.Socket.assigns()) :: LiveData.Tracked.tree()
Link to this callback

handle_event(event, t)

(optional)
@callback handle_event(event :: any(), LiveData.Socket.t()) :: {:ok, LiveData.Socket.t()}
Link to this callback

handle_info(message, t)

(optional)
@callback handle_info(message :: any(), LiveData.Socket.t()) :: {:ok, LiveData.Socket.t()}
Link to this callback

mount(params, t)

(optional)
@callback mount(params :: any(), LiveData.Socket.t()) :: {:ok, LiveData.Socket.t()}
Link to this callback

render(assigns)

@callback render(LiveData.Socket.assigns()) :: rendered()

Link to this section Functions

Link to this function

assign(socket, key, value)

Link to this function

debug_prints?()