@@ -124,7 +124,12 @@ protected virtual bool ShouldRender()
124
124
=> true ;
125
125
126
126
/// <summary>
127
- /// Method invoked after each time the component has been rendered.
127
+ /// Method invoked after each time the component has rendered interactively and the UI has finished
128
+ /// updating (for example, after elements have been added to the browser DOM). Any <see cref="ElementReference" />
129
+ /// fields will be populated by the time this runs.
130
+ ///
131
+ /// This method is not invoked during prerendering or server-side rendering, because those processes
132
+ /// are not attached to any live browser DOM and are already complete before the DOM is updated.
128
133
/// </summary>
129
134
/// <param name="firstRender">
130
135
/// Set to <c>true</c> if this is the first time <see cref="OnAfterRender(bool)"/> has been invoked
@@ -141,9 +146,15 @@ protected virtual void OnAfterRender(bool firstRender)
141
146
}
142
147
143
148
/// <summary>
144
- /// Method invoked after each time the component has been rendered. Note that the component does
145
- /// not automatically re-render after the completion of any returned <see cref="Task"/>, because
146
- /// that would cause an infinite render loop.
149
+ /// Method invoked after each time the component has been rendered interactively and the UI has finished
150
+ /// updating (for example, after elements have been added to the browser DOM). Any <see cref="ElementReference" />
151
+ /// fields will be populated by the time this runs.
152
+ ///
153
+ /// This method is not invoked during prerendering or server-side rendering, because those processes
154
+ /// are not attached to any live browser DOM and are already complete before the DOM is updated.
155
+ ///
156
+ /// Note that the component does not automatically re-render after the completion of any returned <see cref="Task"/>,
157
+ /// because that would cause an infinite render loop.
147
158
/// </summary>
148
159
/// <param name="firstRender">
149
160
/// Set to <c>true</c> if this is the first time <see cref="OnAfterRender(bool)"/> has been invoked
0 commit comments