Emerge.Runtime.Viewport (Emerge v0.2.1)

Copy Markdown View Source

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.

Summary

Types

t()

@type t() :: map()

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

default_wrap_payload(message, payload, event_type)

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

notify_source_reloaded(meta \\ %{})

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

renderer(pid)

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

rerender(state)

@spec rerender(map()) :: map()