The value type
Readonly[Readonly[ReadonlyaddAdd a value to the set.
ReadonlychangesStream of value changes (does not include current value)
ReadonlyclearRemove all values.
ReadonlydeleteDelete a value. Returns true if the value existed.
ReadonlygetGet the current value
ReadonlyhasCheck if a value exists (reactive). Use this for reactive UI bindings.
ReadonlyhasCheck if a value exists as an Effect. Use this for one-time checks in imperative code.
ReadonlyreplaceReplace the entire set contents.
ReadonlysizeReactive size of the set.
ReadonlytoggleToggle a value: add if missing, remove if present. Returns true if the value is now in the set.
ReadonlyupdateUpdate the set using a function.
ReadonlyvaluesStream of all values (current value followed by changes)
ReadonlyvaluesReactive array of values.
A reactive Set with mutation methods that trigger updates. Mutations happen in-place without cloning, then trigger reactive updates.
Example