Skip to content

[mbr] hot reload doesn't work on lambda bodies #50249

@SteveSandersonMS

Description

@SteveSandersonMS

Description

The hot reload feature seems to work a lot better on Index.razor than on certain other files. I'm not sure why the behavior differs.

Steps:

  • Use latest preview 3 SDK
  • dotnet new blazorwasm -o MyApp
  • cd MyApp
  • dotnet watch
  • When the app is running, modify some text in Pages/Index.razor - see it appears correctly in the browser
  • Now try a similar edit inside Shared/NavMenu.razor, for example change the text Home to Home2.
    • Expected: change is applied
    • Actual: runtime crashes

image

Configuration

This is with SDK 6.0.100-preview.3.21173.6, with Microsoft.NETCoreSdk.BundledVersions.props patched to use the runtime version 6.0.0-preview.4.21174.4.

cc @lambdageek

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-EnC-monoHot Reload for WebAssembly, iOS/Android, etc

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions