# `Emerge.Runtime.Viewport`
[🔗](https://github.com/emerge-elixir/emerge/blob/v0.2.1/lib/emerge/runtime/viewport.ex#L1)

Runtime GenServer backing `use Emerge` viewport modules.

This module owns the process lifecycle, renderer integration, tree upload and
patch flow, and event routing used by the public `Emerge` API.

Most application code should use `Emerge` directly instead of calling this
module.

# `t`

```elixir
@type t() :: map()
```

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `default_wrap_payload`

```elixir
@spec default_wrap_payload(term(), term(), term()) :: term()
```

# `notify_source_reloaded`

```elixir
@spec notify_source_reloaded(term()) :: :ok
```

# `renderer`

```elixir
@spec renderer(pid()) :: term()
```

# `rerender`

```elixir
@spec rerender(map()) :: map()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
