ComponentBase.OnAfterRender(Boolean) Method

Definition

Method invoked after each time the component has been rendered.

protected:
 virtual void OnAfterRender(bool firstRender);
protected virtual void OnAfterRender (bool firstRender);
abstract member OnAfterRender : bool -> unit
override this.OnAfterRender : bool -> unit
Protected Overridable Sub OnAfterRender (firstRender As Boolean)

Parameters

firstRender
Boolean

Set to true if this is the first time OnAfterRender(Boolean) has been invoked on this component instance; otherwise false.

Remarks

The OnAfterRender(Boolean) and OnAfterRenderAsync(Boolean) 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.

Applies to