Skip to content

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

View source

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

NameSummary
.ctorInitializes a new instance of the [ReactiveComponentBase](# class.

Properties

NameSummary
IsDisposedGets a value indicating whether the component has been disposed.
RendererSequencerGets a sequencer that schedules work through the Blazor renderer dispatcher.

Methods

NameSummary
DisposeDisposes the component and all tracked subscriptions.
TrackTracks a subscription so it is disposed when the component is disposed.
ObserveSubscribes to a source and refreshes the component after each value.
InvalidateAsyncInvalidates the component through Blazor's renderer dispatcher.
OnObservedErrorHandles an unhandled subscription error.
Inherited members