Skip to content

[Blazor] Disable built-in HotReload when environment variable is set #62735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 17, 2025

Conversation

maraf
Copy link
Member

@maraf maraf commented Jul 15, 2025

We are moving HotReload outside of Blazor WebAssembly codebase. In dotnet/sdk#49800 we are introducing a package that will be automatically referenced by WasmSDK.

This PR leaves the HotReload built-into Blazor in place, just allows to disable it when the new package is used (by reading an environment variable). The plan is to remove the built-in HotReload in follow up.

Contributes to #61272

@maraf maraf added this to the 10.0-preview7 milestone Jul 15, 2025
@maraf maraf self-assigned this Jul 15, 2025
@maraf maraf added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Jul 15, 2025
@maraf maraf changed the title [Blazor] Extract HotReload for WebAssembly [Blazor] Disable built-in HotReload when environment variable is set Jul 16, 2025
@maraf maraf marked this pull request as ready for review July 17, 2025 08:37
@maraf maraf requested a review from a team as a code owner July 17, 2025 08:37
@maraf
Copy link
Member Author

maraf commented Jul 17, 2025

/ba-g Timeout in Microsoft.AspNetCore.Server.HttpSys.Listener.AuthenticationOnExistingQueueTests_CreateOrAttach_UseNewUrlPrefix.AuthTypes_AllowAnonymous_NoChallenge is unrelated

@maraf maraf merged commit 4d5e043 into dotnet:main Jul 17, 2025
26 of 28 checks passed
@maraf maraf deleted the BlazorHotReloadPackageV2 branch July 17, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants