@@ -97,7 +97,7 @@ public Renderer(IServiceProvider serviceProvider, ILoggerFactory loggerFactory,
9797 _logger = loggerFactory . CreateLogger < Renderer > ( ) ;
9898 _componentFactory = new ComponentFactory ( componentActivator ) ;
9999
100- if ( HotReloadFeature . IsSupported )
100+ if ( TestableMetadataUpdate . IsSupported )
101101 {
102102 HotReloadManager . OnDeltaApplied += RenderRootComponentsOnHotReload ;
103103 }
@@ -121,9 +121,9 @@ private static IComponentActivator GetComponentActivatorOrDefault(IServiceProvid
121121 protected internal ElementReferenceContext ? ElementReferenceContext { get ; protected set ; }
122122
123123 /// <summary>
124- /// Gets a value that determines if the <see cref="Renderer"/> is triggering a render in response to a hot-reload change.
124+ /// Gets a value that determines if the <see cref="Renderer"/> is triggering a render in response to a (metadata update) hot-reload change.
125125 /// </summary>
126- internal bool IsHotReloading { get ; private set ; }
126+ internal bool IsRenderingOnMetadataUpdate { get ; private set ; }
127127
128128 private async void RenderRootComponentsOnHotReload ( )
129129 {
@@ -139,7 +139,7 @@ await Dispatcher.InvokeAsync(() =>
139139 return ;
140140 }
141141
142- IsHotReloading = true ;
142+ IsRenderingOnMetadataUpdate = true ;
143143 try
144144 {
145145 foreach ( var ( componentState , initialParameters ) in _rootComponents )
@@ -149,7 +149,7 @@ await Dispatcher.InvokeAsync(() =>
149149 }
150150 finally
151151 {
152- IsHotReloading = false ;
152+ IsRenderingOnMetadataUpdate = false ;
153153 }
154154 } ) ;
155155 }
@@ -227,7 +227,7 @@ protected async Task RenderRootComponentAsync(int componentId, ParameterView ini
227227 // During the asynchronous rendering process we want to wait up until all components have
228228 // finished rendering so that we can produce the complete output.
229229 var componentState = GetRequiredComponentState ( componentId ) ;
230- if ( HotReloadFeature . IsSupported )
230+ if ( TestableMetadataUpdate . IsSupported )
231231 {
232232 // when we're doing hot-reload, stash away the parameters used while rendering root components.
233233 // We'll use this to trigger re-renders on hot reload updates.
@@ -998,7 +998,7 @@ public void Dispose()
998998 /// <inheritdoc />
999999 public async ValueTask DisposeAsync ( )
10001000 {
1001- if ( HotReloadFeature . IsSupported )
1001+ if ( TestableMetadataUpdate . IsSupported )
10021002 {
10031003 HotReloadManager . OnDeltaApplied -= RenderRootComponentsOnHotReload ;
10041004 }
0 commit comments