LiveData behaviour (live_data v0.1.0-alpha0)
Documentation for LiveData
.
Link to this section Summary
Link to this section Types
Link to this type
rendered()
@type rendered() :: any()
Link to this section Callbacks
Link to this callback
__tracked__render__(assigns)
@callback __tracked__render__(LiveData.Socket.assigns()) :: LiveData.Tracked.tree()
@callback handle_event(event :: any(), LiveData.Socket.t()) :: {:ok, LiveData.Socket.t()}
@callback handle_info(message :: any(), LiveData.Socket.t()) :: {:ok, LiveData.Socket.t()}
@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