-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaature
Milestone
Description
Repro steps:
- Install .NET 6 Preview 7
dotnet new blazorwasm -ho -o BlazorAppcd BlazorApp/Serverdotnet watch- Update Index.razor to add the following simple binding code:
<input @bind="text" />
<p>@text</p>
@code {
string? text;
}
- Wait for the app to restart
- Update the
Titleattribute of theSurveyPromptcomponent to change the attribute value to something else.
Expected result:
- The change is applied to the running app and shows up in the survey prompt in the browser
Actual result:
dotnet watchsays the change was successfully applied, but the change doesn't show up in the browser. Navigating to a different tab and back again to trigger a rerender doesn't help, neither does refreshing the browser.- If you make another simple change, like updating the attribute value again or changing some HTML markup,
dotnet watchsays that a rude edit has occurred. - If you remove the input and data binding code, then hot reload seems to work fine.
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-hot-reloadThis issue is related to the Hot Reload feaatureThis issue is related to the Hot Reload feaature