View Source LiveNavigator.Page (live_navigator v0.1.7)

Application page state

Link to this section Summary

Link to this section Types

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

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()