OpenUI.Runtime.Context (OpenUI v0.1.1)

Copy Markdown View Source

What evaluation reads: the library, the state store, the current result of each query and the status of each mutation.

queries maps a query id to its latest result (or its defaults before the first one). mutations maps a mutation id to %{"status", "data", "error"}; an absent mutation reads as idle.

Summary

Types

t()

@type t() :: %OpenUI.Runtime.Context{
  library: OpenUI.Library.t(),
  mutations: %{required(String.t()) => map()},
  queries: %{required(String.t()) => term()},
  state: %{required(String.t()) => term()}
}