ReactiveLayoutComponentBase.OnAfterRender(bool) method¶
Defined in
Type: ReactiveLayoutComponentBaseReactiveUI.Blazor
Assembly: ReactiveUI.Blazor.dll
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, net471
protected override void OnAfterRender(bool firstRender)
Inherited documentation
These docs were inherited from ComponentBase. The member doesn't override them on this type.
Summary: Method invoked after each time the component has rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs. This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.
Parameters
| Name | Type | Description |
|---|---|---|
firstRender | bool | Set to true if this is the first time OnAfterRender has been invoked on this component instance; otherwise false. |
Remarks
The OnAfterRender and OnAfterRenderAsync lifecycle methods
are useful for performing interop, or interacting with values received from @ref.
Use the firstRender parameter to ensure that initialization work is only performed
once.