sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[Hot Reload] Enable Blazor hot reloading for multiple browser windows at the same time

Open jsakamoto opened this issue 1 year ago • 0 comments

Description

Hot Reload on a Blazor WebAssembly app doesn't work stability for multiple browser windows simultaneously. Apparently, it works fine at first. However, if you open the app with a new window once after any hot reloading is applied, the hot reloading won't be applied to that new window. Moreover, once that happens, opening the app in another new window shows the appearance before the hot reloading was applied. Please see also the video I attached.

https://github.com/dotnet/sdk/assets/95908/771728a2-0f8d-41b8-9c5a-bfced4ca49e4

The solution I'd like

It would be great if the hot reloading worked well for multiple windows simultaneously in some edge cases. For instance, the clone of Storybook for Blazor, "Blazing Story" (https://github.com/jsakamoto/BlazingStory), requires such ability because it has to host multiple preview frames for the stories using an iframe on the same page.

image

Remarks

I'm unsure whether the same problem will occur on a Blazor Srever app.

Related Feature Requests

See also: #39137 [Hot Reload] Enable hot reloading for Blazor inside an iframe

The ability above is also required for the hot reloading on the "Blazing Story".

jsakamoto avatar Mar 02 '24 08:03 jsakamoto