Skip to content

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

@jsakamoto

Description

@jsakamoto

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.

2024-03-01_22h23_49.mp4

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor Componentsfeature-hot-reloadThis issue is related to the Hot Reload feaature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions