You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this sample was derived as a .NET 7.0 rc2 from a sample named "javascript-interaction-blazor-wasm-dotnet6-master" found on github one year ago
Describe the bug
Enabling threads disable Blazor interface startup
To Reproduce
Steps to reproduce the behavior:
open and run sample blazor interface appears
on blazor interface click on CallC# button then calllocalstaticmethod continue after brakepoints then check that "localstaticmethodcalled" message appears
stop project then enable thread property on .csproj and run the project for a second time then check that no blazor interface appears
Expected behavior
The blazor interface should appear as for the first run.
Note that another research on "blazor addin" (see #544) shows a similar behaviour : DotNet.invokeMethodAsync is disabled by thread enabling
@RaoulRSV If I follow your steps, I indeed see the same issue.
If I however read the blogpost here (and the comments below) it has not been applied for Blazor Web Assembly. The sample project in the blogpost was working, but that is in plain javascript ... not in Blazor. Also, the comments below indicate that for async Task handling threading is not needed.
We need to wait to get this into the code for Blazor Web Assembly for threading support.
@aafvstam You're right. Now I get it. Multithreading is not available for blazor yet be it with .net 7.0 rc2 or .NET 8.0 preview. I did misinterpret the blogpost you mention. It is about webworkers in plain javascript as you mentionned and seems to still have its own difficulties see here.
Thank you for your help
I close this issue
URL of sample
sample
Note that this sample was derived as a .NET 7.0 rc2 from a sample named "javascript-interaction-blazor-wasm-dotnet6-master" found on github one year ago
Describe the bug
Enabling threads disable Blazor interface startup
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The blazor interface should appear as for the first run.
Note that another research on "blazor addin" (see #544) shows a similar behaviour : DotNet.invokeMethodAsync is disabled by thread enabling
Environment
Additional context
This issue could be merged with #544
The text was updated successfully, but these errors were encountered: