Public API for socket operations.
This module delegates to Dala.Ui.Socket for socket functionality.
Summary
Functions
Assign multiple values to the socket.
Assign a value to the socket.
Check if specific key(s) have changed since the last render.
Get a value from the socket assigns.
Get the Dala metadata from the socket.
Create a new socket for a screen module.
Put Dala metadata into the socket.
Store the root view ref in the socket.
Functions
@spec assign(Dala.Ui.Socket.t(), keyword() | map()) :: Dala.Ui.Socket.t()
Assign multiple values to the socket.
@spec assign(Dala.Ui.Socket.t(), atom(), term()) :: Dala.Ui.Socket.t()
Assign a value to the socket.
@spec changed?(Dala.Ui.Socket.t(), atom() | [atom()]) :: boolean()
Check if specific key(s) have changed since the last render.
@spec get(Dala.Ui.Socket.t(), atom(), term()) :: term()
Get a value from the socket assigns.
@spec get_dala(Dala.Ui.Socket.t(), atom(), term()) :: term()
Get the Dala metadata from the socket.
@spec new( module(), keyword() ) :: Dala.Ui.Socket.t()
Create a new socket for a screen module.
@spec put_dala(Dala.Ui.Socket.t(), atom(), term()) :: Dala.Ui.Socket.t()
Put Dala metadata into the socket.
@spec put_root_view(Dala.Ui.Socket.t(), term()) :: Dala.Ui.Socket.t()
Store the root view ref in the socket.