leptos::reactive

Module prelude

Source
Expand description

Reexports frequently-used traits.

Traits§

  • Describes where the signal was defined. This is used for diagnostic warnings and is purely a debug-mode tool.
  • Allows disposing an arena-allocated signal before its owner has been disposed.
  • Helper trait to implement flatten() on Option<&Option<T>>.
  • Converts some value into a locally-stored type, using LocalStorage.
  • Allows creating a signal from an async Stream.
  • Clones the value of the signal, without tracking the value reactively. and subscribes the active reactive observer (an effect or computed) to changes in its value.
  • Clones the value of the signal, without tracking the value reactively.
  • A variation of the Get trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.
  • Checks whether a signal has already been disposed.
  • Notifies subscribers of a change in this signal.
  • Give read-only access to a signal’s value by reference through a guard type, and subscribes the active reactive observer (an effect or computed) to changes in its value.
  • An alternative Read trait that works with Option<Readable> types.
  • Give read-only access to a signal’s value by reference through a guard type, without tracking the value reactively.
  • An alternative ReadUntracked trait that works with Option<Readable> types.
  • A variation of the Read trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.
  • Updates the value of the signal by replacing it.
  • A variation of the Set trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.
  • Allows converting a signal into an async Stream.
  • Allows tracking the value of some reactive data.
  • A reactive, mutable guard that can be untracked to prevent it from notifying subscribers when it is dropped.
  • Updates the value of a signal by applying a function that updates it in place, notifying its subscribers that the value has changed.
  • Updates the value of a signal by applying a function that updates it in place, without notifying subscribers.
  • A variation of the Update trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.
  • Give read-only access to a signal’s value by reference inside a closure, and subscribes the active reactive observer (an effect or computed) to changes in its value.
  • An alternative With trait that works with Option<Withable> types.
  • Give read-only access to a signal’s value by reference inside a closure, without tracking the value reactively.
  • An alternative WithUntracked trait that works with Option<Withable> types.
  • A variation of the With trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.
  • Gives mutable access to a signal’s value through a guard type. When the guard is dropped, the signal’s subscribers will be notified.
  • A variation of the Write trait that provides a signposted “always-non-reactive” API. E.g. for StoredValue.