I create a new Blazor Server Project and i want use your loading component. But, when i tries this, i have an internal server error :
ArgumentNullException: Value cannot be null. (Parameter 'key')
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.ThrowKeyNullException()
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.TryGetValue(TKey key, out TValue value)
Blazor.LoadingIndicator.Loading.UnsubscribeFromTaskProgressChanged(string context, Action<ITaskStatus> action)
Blazor.LoadingIndicator.Indicator.Dispose()
Microsoft.AspNetCore.Components.Rendering.ComponentState.Dispose()
Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose(bool disposing)
Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.HandleException(Exception exception)
Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose(bool disposing)
Microsoft.AspNetCore.Components.RenderTree.Renderer.Dispose()
Microsoft.AspNetCore.Mvc.ViewFeatures.RazorComponents.StaticComponentRenderer.PrerenderComponentAsync(ParameterView parameters, HttpContext httpContext, Type componentType)
Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperComponentExtensions.PrerenderedServerComponentAsync(HttpContext context, ServerComponentInvocationSequence invocationId, Type type, ParameterView parametersCollection)
Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperComponentExtensions.RenderComponentAsync<TComponent>(IHtmlHelper htmlHelper, RenderMode renderMode, object parameters)
Search_Blazor.Pages.Pages__Host.<ExecuteAsync>b__15_1() in _Host.cshtml
@(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))
<Indicator Context="on-init">
<p>I'm successfully initialized!</p>
</Indicator>
protected` override async Task OnInitializedAsync()
{
await Loading.StartTaskAsync(async (task) =>
{
await Task.Delay(5000);
}, "on-init", "Initializing", "Please wait ...");
}
Have a good day.