-
Couldn't load subscription status.
- Fork 5.2k
Description
Description
It's possible this is a known limitation and that @lambdageek has it on a backlog, but @pranavkm said I should report things to ensure they are tracked.
The WebAssembly hot reload support is amazingly fast (really amazingly - I've never seen hot reload so fast on any other tech) but currently it appears to be limited to making changes in a single type. If you have type A referencing B, and you edit B then the change appears, but if you then edit A, your change to A appears but it reverts to referencing the old unedited version of B.
More precise steps:
- Use latest preview 3 SDK
dotnet new blazorwasm -o MyAppcd MyApp
Issue 1:
- Edit
Pages/Index.html, adding<Counter /> dotnet watch. See your counter on the home screen.- Edit
Pages/Counter.razor, e.g., changing the<h1>element to<h1>Counter2</h1>. See this show up on the home screen where you added it. - Edit
Pages/Index.razorto add a second<Counter />.- Expected: New counter appears also with title
Counter2 - Actual: New counter appears, but the title is
Counter, and the other counter component also reverts its title toCounter.
- Expected: New counter appears also with title
Issue 2:
dotnet watch- Edit
Shared/SurveyPrompt.razor, changing some text (e.g.,tell us what you think->HELLO). See your change appear correctly in the browser window. - Go to
Index.razorand try to edit the<h1>text.- Expected: change shows up
- Actual: Nothing happens
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.