Closed K1vs closed 1 year ago
The problem also exists for .NET 6 Blazor Server.
@K1vs Thank you for trying BlazorBootstrap
components. I'm not able to reproduce this issue in .NET 6 / .NET 7 Blazor Server. Please share a reproducable GitHub repo.
Othe Details: Blazor Bootstrap Version: _Host.cshtml file code:
Hi, https://github.com/K1vs/blazorbootstrap-starter-templates/blob/master/src/BlazorBootstrap.Templates.Starter/NET7.BlazorServerApp/Pages/Index.razor this my modification to your project template. Just start NET7.BlazorServerApp and see Visual Studio debug window.
I have the same issue.
@adamshakhabov @K1vs
I'm not sure how to reproduce the issue. I see the behavior 1 out of 50 attempts. For this, you can set the autostart
to false
. Please change your _Host.cshtml
file as follows in Blazor Server project:
<body>
<component type="typeof(App)" render-mode="ServerPrerendered" />
<script src="_framework/blazor.server.js" autostart="false" asp-append-version="true"></script>
<!-- Other script files go here -->
<script>
Blazor.start();
</script>
</body>
Hi, I found that when using some components (eg modal and accordion), the following error can be found in the log (BlazorServer .NET7). This only happens the first time a page with these components is loaded. When you go to such a page on a loaded site, there is no problem.
It is extremely easy to reproduce, in the example for dotnet7 add code to the component, for example SurveyPrompt:
Since this component is used on the start page, we will get a problem when starting the application.