Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 26, 2025

Backport of #63846 to release/10.0

/cc @javiercn

[Blazor][HotReload] Capture the execution context before calling RenderRootComponentsOnHotReload

Ensure ExecutionContext flows to hot reload re-renders

Description

  • capture the current ExecutionContext when subscribing to HotReloadManager.OnDeltaApplied
  • invoke RenderRootComponentsOnHotReload via a helper that restores the captured context, preserving AsyncLocal values
  • add a regression test that simulates hot reload and confirms AsyncLocal data survives the re-render

Fixes #45741

Customer Impact

AsyncLocal-backed data (e.g., culture, logging scopes, circuit state) was being lost after hot reload, leading to incorrect behavior on subsequent renders.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Changes are scoped to the hot reload subscription path, reuse existing render logic, and are exercised by automated tests.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@github-actions github-actions bot requested a review from a team as a code owner September 26, 2025 17:22
@lewing lewing added the Servicing-consider Shiproom approval is required for the issue label Sep 29, 2025
@lewing lewing requested a review from tmat September 29, 2025 20:43
Copy link
Contributor

Hi @@github-actions[bot]. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@lewing lewing added the feature-hot-reload This issue is related to the Hot Reload feaature label Sep 29, 2025
@javiercn
Copy link
Member

@lewing lewing added this to the 10.0.0 milestone Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-hot-reload This issue is related to the Hot Reload feaature Servicing-consider Shiproom approval is required for the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants