ReactiveComponentBase class¶
Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]
Defined in
Namespace: ReactiveUI.Primitives.Blazor.Reactive.Components
Assembly: ReactiveUI.Primitives.Blazor.Reactive.dll
Full name: ReactiveUI.Primitives.Blazor.Reactive.Components.ReactiveComponentBase
Modifiers: public abstract
Summary¶
Base component that tracks reactive subscriptions and refreshes through Blazor's renderer dispatcher.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1
Class hierarchy
classDiagram
class ReactiveComponentBase
class ComponentBase
ComponentBase <|-- ReactiveComponentBase
class IDisposable {
<>
}
IDisposable <|.. ReactiveComponentBase
Inherits from: ComponentBase
Implements: IDisposable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveComponentBase](# class. |
Properties¶
| Name | Summary |
|---|---|
| IsDisposed | Gets a value indicating whether the component has been disposed. |
| RendererSequencer | Gets a sequencer that schedules work through the Blazor renderer dispatcher. |
Methods¶
| Name | Summary |
|---|---|
| Dispose | Disposes the component and all tracked subscriptions. |
| Track | Tracks a subscription so it is disposed when the component is disposed. |
| Observe | Subscribes to a source and refreshes the component after each value. |
| InvalidateAsync | Invalidates the component through Blazor's renderer dispatcher. |
| OnObservedError | Handles an unhandled subscription error. |