-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Labels
area-EnC-monoHot Reload for WebAssembly, iOS/Android, etcHot Reload for WebAssembly, iOS/Android, etc
Milestone
Description
If a hot reload delta is applied to a method M that has never been called before, and then that method is called for the first time after the update, the runtime will assert.
A common variant of this is doing a browser refresh of a Blazor WebAssembly app that had some changes applied. When the runtime restarts, dotnet watch replays the deltas on a fresh runtime, and after that calling any of the updated methods will cause a crash.
Original report:
with dotnet.6.0.0-rc.1.21411.2.js
- Create new app with
dotnet new blazorwasm - Replace
Pages\Index.razorwith https://gist.github.com/pavelsavara/52bf2a7e3625bdbb747473fb6b2ba432 - run
dotnet new watch - open chrome dev console
- click 'Test'
- change
Pages\Index.razorto https://gist.github.com/pavelsavara/06ca4d3d420ff72ec526bd59721c7210 & save - click 'Test'
- reload web page via browser button
- click 'Test'
- observe the error in console log
Metadata
Metadata
Assignees
Labels
area-EnC-monoHot Reload for WebAssembly, iOS/Android, etcHot Reload for WebAssembly, iOS/Android, etc