View Source LiveNavigator.Page (live_navigator v0.1.3)

Application page state

Link to this section Summary

Link to this section Types

@type changes() :: [atom()]
@type field() :: :session_id | :tab | :view | :action | :assigns
@type t() :: %LiveNavigator.Page{
  __changed__: changes(),
  action: atom(),
  assigns: map(),
  session_id: binary(),
  tab: pos_integer(),
  view: module()
}

Link to this section Functions

@spec update(t(), map() | keyword()) :: t()
Link to this function

update(page, field, value)

View Source
@spec update(t(), field(), any()) :: t()