SignalUpdate

zio.http.datastar.SignalUpdate
See theSignalUpdate companion object
final class SignalUpdate[A]

A signal name paired with its JSON-serialized value.

Created via Signal.:=. The name is the signal identifier and serialized is the JSON string produced by the signal's schema codec. Used by DatastarEvent.patchSignals to build SSE payloads and by the ToJs instance to render inline JavaScript object literals.

serialized is inserted verbatim into the final object expression, so it must already be valid JSON for the value being assigned.

Attributes

Companion
object
Source
SignalUpdate.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

val name: String

Attributes

Source
SignalUpdate.scala
val serialized: String

Attributes

Source
SignalUpdate.scala