Closed drocha87 closed 11 months ago
To learn more about what this message means, what to expect next, and how this issue will be handled you can read our Triage Process document. We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. Because it's not immediately obvious what is causing this behavior, we would like to keep this around to collect more feedback, which can later help us determine how to handle this. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact work.
To learn more about what this message means, what to expect next, and how this issue will be handled you can read our Triage Process document. We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. Because it's not immediately obvious what is causing this behavior, we would like to keep this around to collect more feedback, which can later help us determine how to handle this. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact work.
Hi. Thanks for contacting us. We're closing this issue as there was not much community interest in this ask for quite a while now. You can learn more about our triage process and how we handle issues by reading our Triage Process writeup.
@mkArtakMSFT When Microsoft plan to fix this issue ? Because when we have multiple WebAssembly application hosted in a same web app, we can't use the hotreload, specially for the HTML/CSS integrators...
Is there an existing issue for this?
Describe the bug
Hot reload is not updating the changes when setup a new project with a blazor hosted in a sub folder.
Expected Behavior
Refresh the page with the new content when changing the hosted blazor wasm application.
Steps To Reproduce
These commands will open you browser in a main page which is not the blazor wasm page, in the navigation bar type
/app
which will load the blazor wasm application.Open your favorite text editor and change the
Client/Pages/Index.razor
save the file.In the browser you can see that it triggered the hot reload, but nothing will change, even if you reload through the browser.
Your changed will be visible only if you "rebuild" the project typing
ctrl r
on the terminal where the commanddotnet watch --project .
is running.You can see that the project structure on
sources
in the browser is like the following.And the network tab show that trying to load the
blazor-hotreload
return204
(no content).I also noticed that in
blazor-hotreload.js
this piece of code is returning204
(which is showed above)If we don't enter this branch (because the status code is not 200) we don't call
applyHotReload
defined inblazor.webassembly.js
This is the output of running the
dotnet watch --project . -v
verboseIf you guys need more information just tell me.
Exceptions (if any)
No response
.NET Version
7.0.100-rc.2.22477.23
Anything else?
ASP.NET Core version: Microsoft.AspNetCore.App 7.0.0-rc.2.22476.2 The IDE: Vs Code
The output of
dotnet --info