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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant