PatchSignals

data class PatchSignals(val signals: List<Signal>, val onlyIfMissing: Boolean? = false, val id: SseEventId? = null) : DatastarEvent(source)

The datastar-patch-signals event is used to update the store with new values. The onlyIfMissing line determines whether to update the store with new values only if the key does not exist. The signals lines should be a valid data-store attribute. These will get merged into the store.

Constructors

Link copied to clipboard
constructor(signals: List<Signal>, onlyIfMissing: Boolean? = false, id: SseEventId? = null)
constructor(vararg signal: Signal, onlyIfMissing: Boolean? = false, id: SseEventId? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: SseEventId?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun toSseEvent(): SseMessage.Event