Current section

Files

Jump to
live_debugger lib live_debugger structs lv_state.ex
Raw

lib/live_debugger/structs/lv_state.ex

defmodule LiveDebugger.Structs.LvState do
@moduledoc """
This module provides a struct to represent a LiveView state.
"""
defstruct [:pid, :socket, :components]
@type component() :: %{
id: String.t(),
cid: integer(),
module: module(),
assigns: map(),
private: map(),
children_cids: [integer()]
}
@type t() :: %__MODULE__{
pid: pid(),
socket: Phoenix.LiveView.Socket.t(),
components: [component()]
}
end