MergeSignals

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

The datastar-merge-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 line should be a valid data-store attribute. This will get merged into the store.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
open override val id: SseEventId? = null
Link copied to clipboard
Link copied to clipboard
val onlyIfMissing: Boolean? = false
Link copied to clipboard

Functions

Link copied to clipboard